mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-07 10:19:51 +00:00
lang/c/msgpack: C++ binding: implemented built-in buffer.
git-svn-id: file:///Users/frsyuki/project/msgpack-git/svn/x@55 5a5092ae-2292-43ba-b2d5-dcab9c1a2731
This commit is contained in:
parent
249d3e9c90
commit
990ac38ccd
9 changed files with 299 additions and 66 deletions
|
|
@ -59,11 +59,8 @@ static inline object_class* msgpack_unpack_map_start(zone** z, unsigned int n)
|
|||
static inline void msgpack_unpack_map_item(zone** z, object_class* c, object_class* k, object_class* v)
|
||||
{ reinterpret_cast<object_map*>(c)->store(k, v); }
|
||||
|
||||
static inline object_class* msgpack_unpack_string(zone** z, const void* b, size_t l)
|
||||
{ return (*z)->nraw(b, l); }
|
||||
|
||||
static inline object_class* msgpack_unpack_raw(zone** z, const void* b, size_t l)
|
||||
{ return (*z)->nraw(b, l); }
|
||||
static inline object_class* msgpack_unpack_raw(zone** z, const void* b, const void* p, size_t l)
|
||||
{ return (*z)->nraw_ref(p, l); }
|
||||
|
||||
|
||||
} // extern "C"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue