summaryrefslogtreecommitdiff
path: root/c/pack.h
diff options
context:
space:
mode:
authorfrsyuki <frsyuki@5a5092ae-2292-43ba-b2d5-dcab9c1a2731>2009-02-15 09:10:00 +0000
committerfrsyuki <frsyuki@5a5092ae-2292-43ba-b2d5-dcab9c1a2731>2009-02-15 09:10:00 +0000
commitcd973b8483af21d4a3a03497aa223b82b5c1a9a2 (patch)
tree65485253e24ebd809f05884ca7891f75b24df35f /c/pack.h
parentadba617f45f89cacbd23667744d0cc17668ecdda (diff)
downloadmsgpack-python-cd973b8483af21d4a3a03497aa223b82b5c1a9a2.tar.gz
integrate machine-dependent integer serialization routine to msgpack/pack_template.h
git-svn-id: file:///Users/frsyuki/project/msgpack-git/svn/x@90 5a5092ae-2292-43ba-b2d5-dcab9c1a2731
Diffstat (limited to 'c/pack.h')
-rw-r--r--c/pack.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/c/pack.h b/c/pack.h
index fac642f..ecf675c 100644
--- a/c/pack.h
+++ b/c/pack.h
@@ -41,6 +41,7 @@ void msgpack_pack_int(msgpack_pack_t* ctx, int d);
void msgpack_pack_unsigned_int(msgpack_pack_t* ctx, unsigned int d);
void msgpack_pack_long(msgpack_pack_t* ctx, long d);
void msgpack_pack_unsigned_long(msgpack_pack_t* ctx, unsigned long d);
+
void msgpack_pack_uint8(msgpack_pack_t* ctx, uint8_t d);
void msgpack_pack_uint16(msgpack_pack_t* ctx, uint16_t d);
void msgpack_pack_uint32(msgpack_pack_t* ctx, uint32_t d);
@@ -49,13 +50,18 @@ void msgpack_pack_int8(msgpack_pack_t* ctx, int8_t d);
void msgpack_pack_int16(msgpack_pack_t* ctx, int16_t d);
void msgpack_pack_int32(msgpack_pack_t* ctx, int32_t d);
void msgpack_pack_int64(msgpack_pack_t* ctx, int64_t d);
+
void msgpack_pack_float(msgpack_pack_t* ctx, float d);
void msgpack_pack_double(msgpack_pack_t* ctx, double d);
+
void msgpack_pack_nil(msgpack_pack_t* ctx);
void msgpack_pack_true(msgpack_pack_t* ctx);
void msgpack_pack_false(msgpack_pack_t* ctx);
+
void msgpack_pack_array(msgpack_pack_t* ctx, unsigned int n);
+
void msgpack_pack_map(msgpack_pack_t* ctx, unsigned int n);
+
void msgpack_pack_raw(msgpack_pack_t* ctx, size_t l);
void msgpack_pack_raw_body(msgpack_pack_t* ctx, const void* b, size_t l);