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


C# Int64类代码示例

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


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

示例1: Document

 public Document(
     Int16 _TypeId,
     Int64 _Serial,
     Int32 _SignedUser,
     DateTime _Date,
     Boolean _Printed,
     String _DocumentShortName,
     String _DocumentFullName,
     String _MedexDataTable,
     String _DocumentBody,
     String _DocumentHeader,
     Boolean _SetDeleted
     
     )
 {
     TypeId = _TypeId;
        Serial = _Serial;
        SignedUser = _SignedUser;
        Date = _Date;
        Printed = _Printed;
        DocumentShortName = _DocumentShortName;
        DocumentFullName = _DocumentFullName;
        MedexDataTable = _MedexDataTable;
        DocumentBody = _DocumentBody;
        DocumentHeader = _DocumentHeader;
        SetDeleted = _SetDeleted;
 }
开发者ID:oeai,项目名称:medx,代码行数:27,代码来源:Document.cs

示例2: MessageAttemptInfo

 public MessageAttemptInfo(Message message, Int64 sequenceNumber, int retryCount, object state)
 {
     this.message = message;
     this.sequenceNumber = sequenceNumber;
     this.retryCount = retryCount;
     this.state = state;
 }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:7,代码来源:TransmissionStrategy.cs

示例3: CreateStateToIncreaseQuotaForApplication

 internal static IsolatedStorageSecurityState CreateStateToIncreaseQuotaForApplication(Int64 newQuota, Int64 usedSize) { 
     IsolatedStorageSecurityState state = new IsolatedStorageSecurityState(); 
     state.m_Options = IsolatedStorageSecurityOptions.IncreaseQuotaForApplication;
     state.m_Quota = newQuota; 
     state.m_UsedSize = usedSize;
     return state;
 }
开发者ID:sjyanxin,项目名称:WPFSource,代码行数:7,代码来源:IsolatedStorageSecurityState.cs

示例4: Write

		public override void Write(Int64 val)
		{
			val = Utilities.SwapBytes(val);
			base.Write(val);

			if (AutoFlush) Flush();
		}
开发者ID:svarogg,项目名称:System.Drawing.PSD,代码行数:7,代码来源:BinaryReverseWriter.cs

示例5: HexNumberToInt64

 private static Boolean HexNumberToInt64(ref NumberBuffer number, ref Int64 value)
 {
     UInt64 passedValue = 0;
     Boolean returnValue = HexNumberToUInt64(ref number, ref passedValue);
     value = (Int64)passedValue;
     return returnValue;
 }
开发者ID:nattress,项目名称:corert,代码行数:7,代码来源:FormatProvider.FormatAndParse.cs

示例6: LittleEndian

        /// <summary>
        /// Converts a <see cref="Int64"/> to little endian notation.
        /// </summary>
        /// <param name="input">The <see cref="Int64"/> to convert.</param>
        /// <returns>The converted <see cref="Int64"/>.</returns>
        public static Int64 LittleEndian(Int64 input)
        {
            if (BitConverter.IsLittleEndian)
                return input;

            return Swap(input);
        }
开发者ID:neokamikai,项目名称:rolib,代码行数:12,代码来源:EndianConverter.cs

示例7: MemoryMappedView

        private unsafe MemoryMappedView(SafeMemoryMappedViewHandle viewHandle, Int64 pointerOffset, 
                                            Int64 size, MemoryMappedFileAccess access) {

            m_viewHandle = viewHandle;
            m_pointerOffset = pointerOffset;
            m_size = size;
            m_access = access;
        }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:8,代码来源:MemoryMappedView.cs

示例8: CreateStateToIncreaseQuotaForGroup

 internal static IsolatedStorageSecurityState CreateStateToIncreaseQuotaForGroup(String group, Int64 newQuota, Int64 usedSize) {
     IsolatedStorageSecurityState state = new IsolatedStorageSecurityState();
     state.m_Options = IsolatedStorageSecurityOptions.IncreaseQuotaForGroup;
     state.m_Group = group;
     state.m_Quota = newQuota;
     state.m_UsedSize = usedSize;
     return state;
 }
开发者ID:krytht,项目名称:DotNetReferenceSource,代码行数:8,代码来源:IsolatedStorageSecurityState.cs

示例9: Int64

        public static byte[] Int64(Int64 i, Endianness e = Endianness.Machine)
        {
            byte[] bytes = BitConverter.GetBytes(i);

            if (NeedsFlipping(e)) Array.Reverse(bytes);

            return bytes;
        }
开发者ID:HaKDMoDz,项目名称:eStd,代码行数:8,代码来源:Pack.cs

示例10: UserExist

 public static bool UserExist(Int64 id)
 {
     String where = String.Format("id = {0}", id);
     DataRow userData = Db.Instance.dSet.users.FindByid(id);
     if (userData != null)
     {
         return true;
     }
     return false;
 }
开发者ID:AndrianDTR,项目名称:Atlantic,代码行数:10,代码来源:User.cs

示例11: CanMerge

        // Returns true if merging the number will not increase the number of ranges past MaxSequenceRanges.
        public static bool CanMerge(Int64 sequenceNumber, SequenceRangeCollection ranges)
        {
            if (ranges.Count < ReliableMessagingConstants.MaxSequenceRanges)
            {
                return true;
            }

            ranges = ranges.MergeWith(sequenceNumber);
            return ranges.Count <= ReliableMessagingConstants.MaxSequenceRanges;
        }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:11,代码来源:ReliableInputConnection.cs

示例12: Write

 public static void Write(this BinaryWriter writer, Int64 value, bool invertEndian = false)
 {
     if (invertEndian)
     {
         writer.WriteInvertedBytes(BitConverter.GetBytes(value));
     }
     else
     {
         writer.Write(value);
     }
 }
开发者ID:r2d2rigo,项目名称:BinaryEndiannessExtensions,代码行数:11,代码来源:BinaryWriterExtensions.cs

示例13: OnHandshake

        public void OnHandshake(IPeerWireClient peerWireClient, byte[] handshake)
        {
            BDict dict = (BDict)BencodingUtils.Decode(handshake);
            if (dict.ContainsKey("metadata_size"))
            {
                BInt size = (BInt)dict["metadata_size"];
                _metadataSize = size;
                _pieceCount = (Int64)Math.Ceiling((double)_metadataSize / 16384);
            }

            RequestMetaData(peerWireClient);
        }
开发者ID:alex-kir,项目名称:System.Net.Torrent,代码行数:12,代码来源:UTMetadata.cs

示例14: SequenceRange

        public SequenceRange(Int64 lower, Int64 upper)
        {
            if (lower < 0)
            {
                throw Fx.AssertAndThrow("Argument lower cannot be negative.");
            }

            if (lower > upper)
            {
                throw Fx.AssertAndThrow("Argument upper cannot be less than argument lower.");
            }

            this.lower = lower;
            this.upper = upper;
        }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:15,代码来源:SequenceRange.cs

示例15: TestList

		private static void TestList()
		{
			var random = new Random(DateTime.UtcNow.Millisecond);

			var inputItems = new Int64[itemsCount];

			for (var index = 0; index < itemsCount; index++)
			{
				inputItems[index] = random.Next();
			}

			var result = CollectionLoadTestHelper.RunAllAsync(inputItems, concurrentWritersCount).Result;

			PrintResults(result);
		}
开发者ID:stas-sultanov,项目名称:System.Collections.Tests,代码行数:15,代码来源:Program.cs


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