Exemple #1
0
        public static CustomPacket Create(Int16 protocolID)
        {
            //CustomPacket packet = new CustomPacket();
            CustomPacket packet = PacketBufferManager.Pop();

            packet.SetProtocol(protocolID);
            return(packet);
        }
Exemple #2
0
 public void CopyTo(CustomPacket targetPacket)
 {
     targetPacket.SetProtocol(m_protocolID);
     targetPacket.Overwrite(m_buffer, m_position);
 }