Shrink packet header size

This commit is contained in:
derek.holloway committed 2026-07-01 20:30:05 -07:00
1 parent c3906e7d60
commit 7b58ca0338
10 files changed
+140 -115

No files matched your search

+2 -2
View File
@@ -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 );
}