MAPIInspector.Parsers.FastTransferStream.ReadUInt64 C# (CSharp) Метод

ReadUInt64() публичный Метод

Read the unsigned long integer value from stream, and advance the position within the stream by 8
public ReadUInt64 ( ) : ulong
Результат ulong
        public ulong ReadUInt64()
        {
            byte[] buffer = new byte[8];
            this.Read(buffer, 0, buffer.Length);
            return BitConverter.ToUInt64(buffer, 0);
        }

Usage Example

 /// <summary>
 /// Parse from a stream.
 /// </summary>
 /// <param name="stream">A stream contains ProgressInformation.</param>
 public void Parse(FastTransferStream stream)
 {
     this.Version = stream.ReadUInt16();
     this.Padding1 = stream.ReadUInt16();
     this.FAIMessageCount = stream.ReadUInt32();
     this.FAIMessageTotalSize = stream.ReadUInt64();
     this.NormalMessageCount = stream.ReadUInt32();
     this.Padding2 = stream.ReadUInt32();
     this.NormalMessageTotalSize = stream.ReadUInt64();
 }