• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Int64类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: UniqueId

 unsafe public UniqueId(byte[] guid, int offset)
 {
     if (guid == null)
         throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("guid"));
     if (offset < 0)
         throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", SR.GetString(SR.ValueMustBeNonNegative)));
     if (offset > guid.Length)
         throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", SR.GetString(SR.OffsetExceedsBufferSize, guid.Length)));
     if (guidLength > guid.Length - offset)
         throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.XmlArrayTooSmallInput, guidLength), "guid"));
     fixed (byte* pb = &guid[offset])
     {
         this.idLow = UnsafeGetInt64(pb);
         this.idHigh = UnsafeGetInt64(&pb[8]);
     }
 }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:16,代码来源:UniqueID.cs


示例17: TryReadBlock

        //shouldn't ever read the byte at position endExtraField
        //assumes we are positioned at the beginning of an extra field subfield
        public static Boolean TryReadBlock(BinaryReader reader, Int64 endExtraField, out ZipGenericExtraField field)
        {
            field = new ZipGenericExtraField();

            //not enough bytes to read tag + size
            if (endExtraField - reader.BaseStream.Position < 4)
                return false;

            field._tag = reader.ReadUInt16();
            field._size = reader.ReadUInt16();

            //not enough bytes to read the data
            if (endExtraField - reader.BaseStream.Position < field._size)
                return false;

            field._data = reader.ReadBytes(field._size);
            return true;
        }
开发者ID:noahfalk,项目名称:corefx,代码行数:20,代码来源:ZipBlocks.cs


示例18: Invoke

    internal sealed override void Invoke( FrameworkElement fe, FrameworkContentElement fce, Style targetStyle, FrameworkTemplate frameworkTemplate, Int64 layer )
    {
        Debug.Assert( fe != null || fce != null, "Caller of internal function failed to verify that we have a FE or FCE - we have neither." );
        Debug.Assert( targetStyle != null || frameworkTemplate != null,
            "This function expects to be called when the associated action is inside a Style/Template.  But it was not given a reference to anything." );

        INameScope nameScope = null;
        if( targetStyle != null )
        {
            nameScope = targetStyle;
        }
        else
        {
            Debug.Assert( frameworkTemplate != null );
            nameScope = frameworkTemplate;
        }

        Invoke( fe, fce, GetStoryboard( fe, fce, nameScope ) );
    }
开发者ID:krytht,项目名称:DotNetReferenceSource,代码行数:19,代码来源:ControllableStoryboardAction.cs


示例19: LogAnalyticVerbose

        /// <summary>
        /// Logs remoting fragment data to verbose channel.
        /// </summary>
        /// <param name="id"></param>
        /// <param name="opcode"></param>
        /// <param name="task"></param>
        /// <param name="keyword"></param>
        /// <param name="objectId"></param>
        /// <param name="fragmentId"></param>
        /// <param name="isStartFragment"></param>
        /// <param name="isEndFragment"></param>
        /// <param name="fragmentLength"></param>
        /// <param name="fragmentData"></param>
        internal static void LogAnalyticVerbose(PSEventId id, PSOpcode opcode, PSTask task, PSKeyword keyword,
            Int64 objectId,
            Int64 fragmentId,
            int isStartFragment,
            int isEndFragment,
            UInt32 fragmentLength,
            PSETWBinaryBlob fragmentData)
        {
            if (provider.IsEnabled(PSLevel.Verbose, keyword))
            {
                string payLoadData = BitConverter.ToString(fragmentData.blob, fragmentData.offset, fragmentData.length);
                payLoadData = string.Format(CultureInfo.InvariantCulture, "0x{0}", payLoadData.Replace("-", ""));

                provider.WriteEvent(id, PSChannel.Analytic, opcode, PSLevel.Verbose, task, keyword,
                                    objectId, fragmentId, isStartFragment, isEndFragment, fragmentLength,
                                    payLoadData);
            }
        }
开发者ID:40a,项目名称:PowerShell,代码行数:31,代码来源:PSEtwLog.cs


示例20: SetInt64

 /// <summary>
 /// Sets the value of a field in a record
 /// </summary>
 /// <param name="ordinal">The ordinal of the field</param>
 /// <param name="value">The new field value</param>
 public void SetInt64(int ordinal, Int64 value)
 {
     SetValue(ordinal, value);
 }
开发者ID:jimmy00784,项目名称:entityframework,代码行数:9,代码来源:DbUpdatableDataRecord.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Int8Image类代码示例发布时间:2022-05-24
下一篇:
C# Int32Image类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap