mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-04-01 09:24:51 +02:00
commit
44fff522bd
@ -31,8 +31,8 @@ To use the library in your program, include msgpack.hpp header and link "msgpack
|
|||||||
target.push_back("World!");
|
target.push_back("World!");
|
||||||
|
|
||||||
// Serialize it.
|
// Serialize it.
|
||||||
msgpack::sbuffer buffer; // simple buffer
|
msgpack::sbuffer sbuf; // simple buffer
|
||||||
msgpack::pack(&buffer, target);
|
msgpack::pack(&sbuf, target);
|
||||||
|
|
||||||
// Deserialize the serialized data.
|
// Deserialize the serialized data.
|
||||||
msgpack::unpacked msg; // includes memory pool and deserialized object
|
msgpack::unpacked msg; // includes memory pool and deserialized object
|
||||||
|
Loading…
x
Reference in New Issue
Block a user