c: msgpack_sbuffer; cpp: msgpack::sbuffer

This commit is contained in:
frsyuki
2009-03-01 00:59:15 +09:00
parent c60b6be548
commit 4f4fa39cd5
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);