public static Packet Create(Int16 protocol_id) { Packet packet = new Packet(); packet.SetProtocol(protocol_id); return(packet); }
public void CopyTo(Packet target) { target.SetProtocol(this.ProtocolId); target.OverWrite(this.Buffer, this.Position); }