Beispiel #1
0
        public virtual void Decode(ReadOnlyMemory <byte> data)
        {
            var stream = new NdrBinaryStream(data.ToArray());

            Header = stream.ReadNdrHeader();

            ReadBody(stream);
        }
Beispiel #2
0
        public virtual void Encode(NdrBinaryStream stream)
        {
            if (Header == null)
            {
                Header = new RpcHeader();
            }

            Header.WriteCommonHeader(stream);

            WriteBody(stream);

            stream.WriteDeferred();
        }