You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MsgPuck is a compact and efficient MessagePack serialization library:
Zero-cost abstractions and zero overhead
Clean and readable C code ready to use
Easy to incorporate into your project
Fully documented and covered by unit tests
Liberal license (BSD-2)
Status
MsgPuck is stable, which means it have been used in production without
serious bugs for quite a while now. The library is fully documented and
covered by unit tests.
Please feel free to file a ticket if your have a problem or a question.
Examples
Encoding:
char buf[1024];
char *w = buf;
w = mp_encode_array(w, 4);
w = mp_encode_uint(w, 10);
w = mp_encode_str(w, "hello world", strlen("hello world"));
w = mp_encode_bool(w, true);
w = mp_encode_double(w, 3.1415);
You need a C89+ or C++03+ compatible compiler to use msgpuck.
Add this project as a submodule or just use libmsgpuck-dev package.
MsgPuck is designed to be fully embedded to your application by a C/C++
compiler. However, some functions require auxiliary static tables which
should be expanded somewhere in a compilation unit (*.c or *.cc file).
Please link libmsgpuck.a to your binary to avoid problems with unresolved
symbols.