MarkLength32() public method

Marks position to write 32-bit length value
public MarkLength32 ( String name ) : void
name String Field name
return void
Ejemplo n.º 1
0
        /// <summary>
        /// Writes PDV to PDU buffer
        /// </summary>
        /// <param name="pdu">PDU buffer</param>
        public void Write(RawPDU pdu)
        {
            byte mch = (byte)((_last ? 2 : 0) + (_command ? 1 : 0));

            pdu.MarkLength32("PDV-Length");
            pdu.Write("Presentation Context ID", (byte)_pcid);
            pdu.Write("Message Control Header", (byte)mch);
            pdu.Write("PDV Value", _value);
            pdu.WriteLength32();
        }
Ejemplo n.º 2
0
		/// <summary>
		/// Writes PDV to PDU buffer
		/// </summary>
		/// <param name="pdu">PDU buffer</param>
		public void Write(RawPDU pdu) {
			byte mch = (byte)((_last ? 2 : 0) + (_command ? 1 : 0));
			pdu.MarkLength32("PDV-Length");
			pdu.Write("Presentation Context ID", (byte)_pcid);
			pdu.Write("Message Control Header", (byte)mch);
			pdu.Write("PDV Value", _value);
			pdu.WriteLength32();
		}