public void Inject(PacketType t, ICanSerialize p, int sockId) { //serialize the packet byte[] dataPacket = p.Serialize(); Inject(t, dataPacket, sockId); }
public static byte[] Encode(PacketType type, ICanSerialize p) { //serialize the packet byte[] data = p.Serialize(); return(Encode(type, data)); }