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

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

Read a GUID value from stream, and advance the position.
public ReadGuid ( ) : System.Guid
Результат System.Guid
        public Guid ReadGuid()
        {
            byte[] buffer = new byte[Guid.Empty.ToByteArray().Length];
            this.Read(buffer, 0, buffer.Length);
            return new Guid(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::ReadGuid