diff options
author | INADA Naoki <songofacandy@gmail.com> | 2013-10-17 08:35:08 +0900 |
---|---|---|
committer | INADA Naoki <songofacandy@gmail.com> | 2013-10-17 08:35:08 +0900 |
commit | da12e177a31445492795f4003bbe0328645325b2 (patch) | |
tree | 8e4d4d8ff30e9d0ff8fa8298cf9c64d74a7af8b5 /msgpack/pack.h | |
parent | f45d7b4e2d362222698b755444ffb61f1cf74b02 (diff) | |
download | msgpack-python-da12e177a31445492795f4003bbe0328645325b2.tar.gz |
Add bin type support.
Diffstat (limited to 'msgpack/pack.h')
-rw-r--r-- | msgpack/pack.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/msgpack/pack.h b/msgpack/pack.h index 1539991..001a0c1 100644 --- a/msgpack/pack.h +++ b/msgpack/pack.h @@ -34,11 +34,11 @@ typedef struct msgpack_packer { char *buf; size_t length; size_t buf_size; + bool use_bin_type; } msgpack_packer; typedef struct Packer Packer; -static inline int msgpack_pack_short(msgpack_packer* pk, short d); static inline int msgpack_pack_int(msgpack_packer* pk, int d); static inline int msgpack_pack_long(msgpack_packer* pk, long d); static inline int msgpack_pack_long_long(msgpack_packer* pk, long long d); @@ -68,6 +68,7 @@ static inline int msgpack_pack_array(msgpack_packer* pk, unsigned int n); static inline int msgpack_pack_map(msgpack_packer* pk, unsigned int n); static inline int msgpack_pack_raw(msgpack_packer* pk, size_t l); +static inline int msgpack_pack_bin(msgpack_packer* pk, size_t l); static inline int msgpack_pack_raw_body(msgpack_packer* pk, const void* b, size_t l); static inline int msgpack_pack_write(msgpack_packer* pk, const char *data, size_t l) |