BonCodeAJP13Namespace.BonCodeAJP13Packet.WriteBonCodeAJP13Header C# (CSharp) Method

WriteBonCodeAJP13Header() protected method

Initialize the packet's header in the raw data.
protected WriteBonCodeAJP13Header ( byte Data ) : int
Data byte
return int
        protected int WriteBonCodeAJP13Header(byte[] Data)
        {
            int Pos = 0;
            // Writing the packet Header .... never change the order of the lines here ...
            // ============================================================
            Pos = SetByte(Data, BonCodeAJP13PacketFormat.BONCODEAJP13_PACKET_START, Pos);
            Pos = SetByte(Data, BonCodeAJP13PacketFormat.BONCODEAJP13_PACKET_START2, Pos);
            Pos = SetUInt16(Data, m_UserDataLength, Pos);
            Pos = SetByte(Data, m_PacketType, Pos);

            return Pos;
        }