Skip to content

Instantly share code, notes, and snippets.

@maxweisel
maxweisel / PackingExample.cpp
Created May 6, 2018 05:41 — forked from ananace/PackingExample.cpp
Message packing example for libyojimbo, with built-in compression.
#include <yojimbo.h>
#include <miniz.h>
class PackedMessage : public yojimbo::BlockMessage
{
public:
enum { MsgType = 0x00 };
template <typename Stream>
bool Serialize(Stream& stream)