mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-11 02:00:48 +02:00
lang/c/msgpack: removed string type
git-svn-id: file:///Users/frsyuki/project/msgpack-git/svn/x@54 5a5092ae-2292-43ba-b2d5-dcab9c1a2731
This commit is contained in:
@@ -119,10 +119,4 @@ check([
|
||||
0xdf, 0x00, 0x00, 0x00, 0x02, 0xc0, 0xc2, 0xc3, 0xc2,
|
||||
], [{}, {nil=>false}, {true=>false, nil=>false}, {}, {nil=>false}, {true=>false, nil=>false}])
|
||||
|
||||
# string
|
||||
check([
|
||||
0x92,
|
||||
0xc1, 0x00,
|
||||
0xc1, ?a, ?b, ?c, 0x00,
|
||||
], ["", "abc"])
|
||||
|
||||
|
@@ -71,11 +71,8 @@ static inline VALUE msgpack_unpack_map_start(msgpack_unpack_context* x, unsigned
|
||||
static inline void msgpack_unpack_map_item(msgpack_unpack_context* x, VALUE c, VALUE k, VALUE v)
|
||||
{ rb_hash_aset(c, k, v); }
|
||||
|
||||
static inline VALUE msgpack_unpack_string(msgpack_unpack_context* x, const void* b, size_t l)
|
||||
{ return rb_str_new(b, l); }
|
||||
|
||||
static inline VALUE msgpack_unpack_raw(msgpack_unpack_context* x, const void* b, size_t l)
|
||||
{ return rb_str_new(b, l); }
|
||||
static inline VALUE msgpack_unpack_raw(msgpack_unpack_context* x, const void* b, const void* p, size_t l)
|
||||
{ return rb_str_new(p, l); }
|
||||
|
||||
#include "msgpack/unpack/inline_impl.h"
|
||||
|
||||
|
Reference in New Issue
Block a user