public void Write(RawPDU pdu) { byte mch = (byte)((_last ? 2 : 0) + (_command ? 1 : 0)); pdu.MarkLength32("PDV-Length"); pdu.Write("Presentation Context ID", _pcid); pdu.Write("Message Control Header", mch); pdu.Write("PDV Value", _value); pdu.WriteLength32(); }
public void Write(RawPDU pdu) { byte mch = (byte)((_last ? 2 : 0) + (_command ? 1 : 0)); pdu.MarkLength32("PDV-Length"); pdu.Write("Presentation Context ID", _pcid); pdu.Write("Message Control Header", mch); pdu.Write("PDV Value", _value.Array, _value.Index, _value.Count); pdu.WriteLength32(); }
public void CreatePDV(byte pcid) { _rawPDU.MarkLength32("PDV-Length"); _rawPDU.Write("Presentation Context ID", pcid); _rawPDU.MarkByte("Message Control Header"); }