Пример #1
0
        public static Packet Create(Int16 protocol_id)
        {
            Packet packet = new Packet();

            packet.SetProtocol(protocol_id);
            return(packet);
        }
Пример #2
0
 public void CopyTo(Packet target)
 {
     target.SetProtocol(this.ProtocolId);
     target.OverWrite(this.Buffer, this.Position);
 }