Exemplo n.º 1
0
        public void CompletePDV(bool last, bool command)
        {
            byte mch = (byte)((last ? 2 : 0) + (command ? 1 : 0));

            _rawPDU.WriteByte(mch);
            _rawPDU.WriteLength32();
        }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 3
0
		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();
		}