/// <summary>
 /// Unmarshal bytes array to the PDU structure.
 /// </summary>
 /// <param name="data">The bytes array to unmarshal.</param>
 /// <param name="pdu">The PDU to be filled.</param>
 /// <param name="bLittleEndian">Indicates whether encode the numbers to little endian.</param>
 /// <returns>The PDU</returns>
 public static bool Unmarshal(byte[] data, BasePDU pdu, bool bLittleEndian)
 {
     PduMarshaler m = new PduMarshaler(data, bLittleEndian);
     return pdu.Decode(m);
 }
Esempio n. 2
0
        /// <summary>
        /// Unmarshal bytes array to the PDU structure.
        /// </summary>
        /// <param name="data">The bytes array to unmarshal.</param>
        /// <param name="pdu">The PDU to be filled.</param>
        /// <param name="bLittleEndian">Indicates whether encode the numbers to little endian.</param>
        /// <returns>The PDU</returns>
        public static bool Unmarshal(byte[] data, BasePDU pdu, bool bLittleEndian)
        {
            PduMarshaler m = new PduMarshaler(data, bLittleEndian);

            return(pdu.Decode(m));
        }
 /// <summary>
 /// Unmarshal bytes array to the PDU structure.
 /// </summary>
 /// <param name="data">The bytes array to unmarshal.</param>
 /// <param name="pdu">The PDU to be filled.</param>
 /// <returns>The PDU</returns>
 public static bool Unmarshal(byte[] data, BasePDU pdu)
 {
     PduMarshaler m = new PduMarshaler(data);
     return pdu.Decode(m);
 }
Esempio n. 4
0
        /// <summary>
        /// Unmarshal bytes array to the PDU structure.
        /// </summary>
        /// <param name="data">The bytes array to unmarshal.</param>
        /// <param name="pdu">The PDU to be filled.</param>
        /// <returns>The PDU</returns>
        public static bool Unmarshal(byte[] data, BasePDU pdu)
        {
            PduMarshaler m = new PduMarshaler(data);

            return(pdu.Decode(m));
        }