Registry / serialization / msgpack-c

msgpack-c

JSON →
library7.0.0vcpkgunverified

MessagePack is an efficient binary serialization format, which lets you exchange data among multiple languages like JSON, except that it's faster and smaller.

vcpkg install msgpack-c
INSTALL
IMPORT
SIG · MSGPACK-C
M
msgpack-c
serializationcppv7.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

msgpack.hpp
#include <msgpack.hpp>

Serialize a vector of integers to MessagePack format and deserialize it back.

#include <msgpack.hpp> #include <iostream> #include <string> int main() { std::vector<int> vec = {1, 2, 3}; msgpack::sbuffer sbuf; msgpack::pack(sbuf, vec); msgpack::object_handle oh = msgpack::unpack(sbuf.data(), sbuf.size()); msgpack::object obj = oh.get(); std::vector<int> result; obj.convert(result); for (int i : result) std::cout << i << " "; std::cout << std::endl; return 0; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
7.0.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources

No resource links recorded.

msgpack-c — pip install msgpack-c · libregistry