public void CompletePDV(bool last, bool command) { byte mch = (byte)((last ? 2 : 0) + (command ? 1 : 0)); _rawPDU.WriteByte(mch); _rawPDU.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); 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(); }