remove msgpack_unpacker_buffered_size, add msgpack_unpacker_parsed_size

This commit is contained in:
frsyuki (none)
2009-02-26 01:15:14 +09:00
parent 6ffee9e54a
commit 65ef9cab66
5 changed files with 26 additions and 19 deletions

View File

@@ -278,6 +278,7 @@ static VALUE MessagePack_unpack_rescue(VALUE args)
static VALUE MessagePack_unpack_limit(VALUE self, VALUE data, VALUE limit)
{
CHECK_STRING_TYPE(data);
msgpack_unpack_t mp;
template_init(&mp);
unpack_user u = {0, Qnil};
@@ -288,6 +289,7 @@ static VALUE MessagePack_unpack_limit(VALUE self, VALUE data, VALUE limit)
VALUE ret = rb_rescue(MessagePack_unpack_impl, (VALUE)args,
MessagePack_unpack_rescue, Qnil);
rb_gc_enable();
return ret;
}