当前位置: 首页>>代码示例>>C#>>正文


C# System.UInt64类代码示例

本文整理汇总了C#中System.UInt64的典型用法代码示例。如果您正苦于以下问题:C# UInt64类的具体用法?C# UInt64怎么用?C# UInt64使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


UInt64类属于System命名空间,在下文中一共展示了UInt64类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: WithRefsWithReturn

 public object WithRefsWithReturn(
     ref string param1,
     ref int param2,
     ref short param3,
     ref long param4,
     ref uint param5,
     ref ushort param6,
     ref ulong param7,
     ref bool param8,
     ref double param9,
     ref decimal param10,
     ref int? param11,
     ref object param12,
     ref char param13,
     ref DateTime param14,
     ref Single param15,
     ref IntPtr param16,
     ref UInt16 param17,
     ref UInt32 param18,
     ref UInt64 param19,
     ref UIntPtr param20
     )
 {
     throw new Exception("Foo");
 }
开发者ID:vlaci,项目名称:Anotar,代码行数:25,代码来源:OnException.cs

示例2: ValueVersion

        public ValueVersion(UInt64 ve, string ss, byte[] va, int ec, ProcessStatus status, Int64 start, Int64 stop)
        {
            version = ve;
            shortStatus = ss;
            value = va;
            exitCode = ec;
            startTime = start;
            stopTime = stop;
            switch (status)
            {
                case ProcessStatus.Queued:
                    processStatus = "Queued";
                    break;

                case ProcessStatus.Running:
                    processStatus = "Running";
                    break;

                case ProcessStatus.Canceling:
                    processStatus = "Canceling";
                    break;

                default:
                    processStatus = "Completed";
                    break;
            }
        }
开发者ID:knowledgehacker,项目名称:Dryad,代码行数:27,代码来源:ProcessService.cs

示例3: DistortionData

 /**
  * @since 3.0
  */
 public DistortionData(UInt64 version, float width, float height, float[] data)
 {
   Version = version;
   Width = width;
   Height = height;
   Data = data;
 }
开发者ID:CMPUT302-W2016,项目名称:HCI-Gestures,代码行数:10,代码来源:DistortionData.cs

示例4: LookupKey

        // Initialize *this for looking up user_key at a snapshot with
        // the specified sequence number.
        public LookupKey(Slice user_key, UInt64 sequence)
        {
            int usize = user_key.Size;
            int needed = usize + 13;  // A conservative estimate
            ByteArrayPointer dst;

            if (needed <= space_.Length)
            {
                dst = new ByteArrayPointer(space_);
            }
            else
            {
                dst = new ByteArrayPointer(needed);
            }

            start_ = dst;
            dst = Coding.EncodeVarint32(dst, (uint)(usize + 8));
            kstart_ = dst;

            user_key.Data.CopyTo(dst, usize);

            dst += usize;

            Coding.EncodeFixed64(dst, Global.PackSequenceAndType(sequence ,Global.kValueTypeForSeek));
            end_ = dst + 8;
        }
开发者ID:somdoron,项目名称:NetLevelDB,代码行数:28,代码来源:LookupKey.cs

示例5: ReverseBytes

		/// <summary>
		/// Reverses the bytes.
		/// </summary>
		/// <returns>The bytes.</returns>
		/// <param name="value">Value.</param>
		private static UInt64 ReverseBytes(UInt64 value)
		{
			return (value & 0x00000000000000FFUL) << 56 | (value & 0x000000000000FF00UL) << 40 |
				(value & 0x0000000000FF0000UL) << 24 | (value & 0x00000000FF000000UL) << 8 |
				(value & 0x000000FF00000000UL) >> 8 | (value & 0x0000FF0000000000UL) >> 24 |
				(value & 0x00FF000000000000UL) >> 40 | (value & 0xFF00000000000000UL) >> 56;
		}
开发者ID:patridge,项目名称:NControl.Controls,代码行数:12,代码来源:BaseFont.cs

示例6: WebSocketBinaryFrame

 public WebSocketBinaryFrame(byte[] data, UInt64 pos, UInt64 length, bool isFinal)
 {
     this.Data = data;
     this.Pos = pos;
     this.Length = length;
     this.IsFinal = isFinal;
 }
开发者ID:ubberkid,项目名称:PeerATT,代码行数:7,代码来源:WebSocketFrameWriters.cs

示例7: SftpWriteRequest

 public SftpWriteRequest(uint requestId, byte[] handle, UInt64 offset, byte[] data, Action<SftpStatusResponse> statusAction)
     : base(requestId, statusAction)
 {
     this.Handle = handle;
     this.Offset = offset;
     this.Data = data;
 }
开发者ID:InoMurko,项目名称:win-sshfs,代码行数:7,代码来源:SftpWriteRequest.cs

示例8: AddImpl

 internal static object AddImpl(UInt64 left, UInt64 right)
 {
     if (left > UInt64.MaxValue - right) {
         return BigInteger.Create(left) + BigInteger.Create(right);
     }
     return left + right;
 }
开发者ID:FabioNascimento,项目名称:DICommander,代码行数:7,代码来源:UInt64Ops.cs

示例9: ArpGenericData

 public ArpGenericData(UInt64 destinationEthernetAddress, ArpOperation arpOperation, UInt64 targetPhysicalAddress, UInt32 targetProtocolAddress)
 {
     this.DestinationEthernetAddress = destinationEthernetAddress;
     this.ArpOperaton = arpOperation;
     this.TargetPhysicalAddress = targetPhysicalAddress;
     this.TargetProtocolAddress = targetProtocolAddress;
 }
开发者ID:NameOfTheDragon,项目名称:Netduino.IP,代码行数:7,代码来源:ArpResolver.cs

示例10: EncodeTweak

        internal static Tweak EncodeTweak(UInt64 position, bool bitPad, TweakType type, bool first, bool final)
        {
            //
            // Takes tweak parameters and encodes them in a 128 bit value. The lower half of the 128 byte value (only the position)
            // is stuck in low64 and the high half in stuck in high64.
            //
            // N.B SimpleSkeinManaged specifies that position can be upto 2^96 but we support only 2^64. We could add support by rolling our own BigInteger
            //
            // The encoding is as follows (ASCII art not to scale)
            //
            // 128             120                   112            96                                    0
            // --------------------------------------------------------------------------------------------
            // F1|F2|    Type   |B|       TreeLevel   |   reserved  |      Position                       |
            //   |  |           | |                   |             |                                     |
            // --------------------------------------------------------------------------------------------
            //  F1 = First
            //  F2 = Final
            //  B  - BitPad
            //

            Tweak tweak = new Tweak(0,0);
            tweak.high64 = 0;

            //
            // The shift numbers are calculated using 64 - (128 - end-byte-from-diagram-above)
            //
            if (final) tweak.high64 |= (UInt64)1L << 63; // Set F1 in diagram above
            if (first) tweak.high64 |= (UInt64)1L << 62; // Set F2 in diagram above
            tweak.high64 |= (UInt64)type << 56; // Set type
            if (bitPad) tweak.high64 |= (UInt64)1L << 55; // Set bit pad

            tweak.low64 = position;
            return tweak;
        }
开发者ID:sriramk,项目名称:nskein,代码行数:34,代码来源:Tweak.cs

示例11: ComputeFingerPrint

 /// <summary>
 /// Compute the fingerprint
 /// </summary>
 /// <param name="source">String to compute</param>
 /// <returns>Hash key</returns>
 public static UInt64 ComputeFingerPrint(string source)
 {
     byte[] table = Encoding.Unicode.GetBytes(source);
     UInt64[] values = new UInt64[table.LongLength];
     ConvertBytes(ref table, ref values);
     return Compute(values);
 }
开发者ID:quartz12345,项目名称:c,代码行数:12,代码来源:RabinFingerPrint.cs

示例12: onRemoveAvatar

        public void onRemoveAvatar(UInt64 dbid)
        {
            Dbg.DEBUG_MSG("Account::onRemoveAvatar: dbid=" + dbid);

            avatars.Remove(dbid);
            Event.fire("onRemoveAvatar", new object[]{dbid});
        }
开发者ID:life02,项目名称:kbengine-cocos2dx,代码行数:7,代码来源:Account.cs

示例13: getAssignDepartmentToDoctorQuery

 public static string getAssignDepartmentToDoctorQuery(UInt64 departmentID, UInt64 doctorID)
 {
     StringBuilder query = new StringBuilder();
     query.Append("Insert into doctors(dr_id, dept_id) values(").Append(doctorID).Append(", ");
     query.Append(departmentID).Append(")");
     return query.ToString();
 }
开发者ID:nuces-acm,项目名称:DevFest-12-Team-8,代码行数:7,代码来源:QueryBuilder.cs

示例14: PackageMissingException

 public PackageMissingException(string name, string arch, UInt64 version, string publicKeyToken)
 {
     Name = name;
     Arch = arch;
     Version = version;
     PublicKeyToken = publicKeyToken;
 }
开发者ID:piscisaureus,项目名称:coapp,代码行数:7,代码来源:PackageMissingException.cs

示例15: Result

 public Result(UInt64 number, UInt64 skip, UInt64 first, bool includeTotalCount)
 {
     this._number = number;
     this._skip = skip;
     this._first = first;
     this._includeTotalCount = includeTotalCount;
 }
开发者ID:Techsupport4me,项目名称:David-Powershell,代码行数:7,代码来源:Result.cs


注:本文中的System.UInt64类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。