public byte[] ReadBlock(int size) { byte[] buffer = new byte[size]; this.Read(buffer, 0, size); return buffer; }
/// <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); }