mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-06 17:59:52 +00:00
c: msgpack_sbuffer; cpp: msgpack::sbuffer
This commit is contained in:
parent
00dcad17b9
commit
76f18a0ea6
4 changed files with 73 additions and 39 deletions
|
|
@ -23,7 +23,7 @@ int main(void)
|
|||
msgpack_zone_init(&mempool, 2048);
|
||||
|
||||
msgpack_object deserialized;
|
||||
msgpack_unpack(sbuf.ptr, sbuf.size, NULL, &mempool, &deserialized);
|
||||
msgpack_unpack(sbuf.data, sbuf.size, NULL, &mempool, &deserialized);
|
||||
|
||||
/* print the deserialized object. */
|
||||
msgpack_object_print(stdout, deserialized);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue