public virtual void Decode(ReadOnlyMemory <byte> data) { var stream = new NdrBinaryStream(data.ToArray()); Header = stream.ReadNdrHeader(); ReadBody(stream); }
public virtual void Encode(NdrBinaryStream stream) { if (Header == null) { Header = new RpcHeader(); } Header.WriteCommonHeader(stream); WriteBody(stream); stream.WriteDeferred(); }