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

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

Read a unsigned short integer value from stream,and advance the position within the stream by 2
public ReadUInt16 ( ) : ushort
Результат ushort
        public ushort ReadUInt16()
        {
            byte[] buffer = new byte[2];
            this.Read(buffer, 0, buffer.Length);
            return BitConverter.ToUInt16(buffer, 0);
        }

Usage Example

 /// <summary>
 /// Parse from a stream.
 /// </summary>
 /// <param name="stream">A stream contains CN.</param>
 public void Parse(FastTransferStream stream)
 {
     this.replicaId = stream.ReadUInt16();
     this.globalCounter = BitConverter.ToUInt64(stream.ReadBlock(6), 0);
 }
All Usage Examples Of MAPIInspector.Parsers.FastTransferStream::ReadUInt16