0
0
Fork 0
mirror of https://github.com/Sanae6/SmoOnlineServer.git synced 2024-11-22 03:05:16 +00:00
This commit is contained in:
Sanae 2022-04-26 23:45:47 -06:00
parent cad2c5b9c8
commit 726bb45a00

View file

@ -21,6 +21,6 @@ public struct PacketHeader : IPacket {
public void Deserialize(ReadOnlySpan<byte> data) { public void Deserialize(ReadOnlySpan<byte> data) {
Id = MemoryMarshal.Read<Guid>(data); Id = MemoryMarshal.Read<Guid>(data);
Type = MemoryMarshal.Read<PacketType>(data[16..]); Type = MemoryMarshal.Read<PacketType>(data[16..]);
PacketSize = MemoryMarshal.Read<short>(data[16..]); PacketSize = MemoryMarshal.Read<short>(data[18..]);
} }
} }