3 #include "PacketMarshal.h"
5 class GameServerPacketMarshal
:
9 GameServerPacketMarshal();
10 ~GameServerPacketMarshal();
12 int Serialize(const IPacket
* packet
, void* buffer
, int size
);
13 IPacket
* Deserialize();
16 static const int PacketSizes
[];
17 static const int WorkBufferSize
= 0x6000;
19 void EnqueuePackets(const void* data
, int size
);
20 static int GetDecompressedPacketSize(const void* data
, int size
);
21 static int GetChatPacketSize(const void* data
, int size
);
23 std::queue
<IPacket
*> _packets
;