Shrink packet header size
This commit is contained in:
1 parent
c3906e7d60
commit
7b58ca0338
10 files changed
+140
-115
No files matched your search
@@ -57,8 +57,8 @@ namespace MistoxServer.Client {
|
||||
}
|
||||
}
|
||||
|
||||
public async Task Send<Packet>(Packet packet) {
|
||||
byte[] data = mSerialize.PacketSerialize( packet );
|
||||
public async Task Send<T>(T packet) {
|
||||
byte[] data = DataPacket.Serialize( packet );
|
||||
await Server.GetStream().WriteAsync( data, 0, data.Length );
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user