BonCodeAJP13Namespace.BonCodeAJP13Packet.BonCodeAJP13Packet C# (CSharp) Method

BonCodeAJP13Packet() public method

Initialize the packet from the buffer, this is the normal case, it sets the essential properties of the packet like type
public BonCodeAJP13Packet ( byte Buffer ) : System
Buffer byte
return System
        public BonCodeAJP13Packet(byte[] Buffer)
        {
            if (Buffer.Length >= BonCodeAJP13Consts.MIN_BONCODEAJP13_PACKET_LENGTH && Buffer.Length <= BonCodeAJP13Consts.MAX_BONCODEAJP13_USERDATA_LENGTH)
            {

            }
            else
            {
                // throw an exeption here ... stating the error !!
                throw new Exception("Invalid BonCodeAJP13 Packet recieved. Wrong byte length.");
            }
        }

Same methods

BonCodeAJP13Packet::BonCodeAJP13Packet ( ) : System