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

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

Read bytes from stream, and advance the position.
public ReadBlock ( int size ) : byte[]
size int The size of bytes
Результат byte[]
        public byte[] ReadBlock(int size)
        {
            byte[] buffer = new byte[size];
            this.Read(buffer, 0, size);
            return buffer;
        }

Usage Example

 /// <summary>
 /// Parse from a stream.
 /// </summary>
 /// <param name="stream">A stream contains XID.</param>
 public void Parse(FastTransferStream stream)
 {
     this.namespaceGuid = stream.ReadGuid();
     this.localId = stream.ReadBlock((int)this.length - 16);
 }
All Usage Examples Of MAPIInspector.Parsers.FastTransferStream::ReadBlock