c: msgpack_sbuffer; cpp: msgpack::sbuffer

This commit is contained in:
frsyuki
2009-03-01 00:59:15 +09:00
parent 00dcad17b9
commit 76f18a0ea6
4 changed files with 73 additions and 39 deletions

View File

@@ -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);