public static CustomPacket Create(Int16 protocolID) { //CustomPacket packet = new CustomPacket(); CustomPacket packet = PacketBufferManager.Pop(); packet.SetProtocol(protocolID); return(packet); }
public void CopyTo(CustomPacket targetPacket) { targetPacket.SetProtocol(m_protocolID); targetPacket.Overwrite(m_buffer, m_position); }