mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-13 14:45:38 +02:00
lang/c/msgpack: divide pack_raw() into pack_raw() and pack_raw_body()
git-svn-id: file:///Users/frsyuki/project/msgpack-git/svn/x@74 5a5092ae-2292-43ba-b2d5-dcab9c1a2731
This commit is contained in:
@@ -279,7 +279,8 @@ void bench_msgpack(void)
|
||||
unsigned int i;
|
||||
msgpack_pack_array(mpk, TASK_STR_LEN);
|
||||
for(i=0; i < TASK_STR_LEN; ++i) {
|
||||
msgpack_pack_raw(mpk, TASK_STR_PTR, i);
|
||||
msgpack_pack_raw(mpk, i);
|
||||
msgpack_pack_raw_body(mpk, TASK_STR_PTR, i);
|
||||
}
|
||||
}
|
||||
show_timer(mpkbuf.length);
|
||||
|
4
c/pack.h
4
c/pack.h
@@ -54,8 +54,8 @@ 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_string(msgpack_pack_t* ctx, const char* b);
|
||||
void msgpack_pack_raw(msgpack_pack_t* ctx, const void* b, size_t l);
|
||||
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);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Reference in New Issue
Block a user