/** * Document-method: MessagePack::Unpacker.unpack * * call-seq: * MessagePack::Unpacker.unpack(data) -> object * * Deserializes one object over the specified buffer. * * UnpackError is throw when parse error is occured, the buffer is insufficient * to deserialize one object or there are extra bytes. */ static VALUE MessagePack_unpack(VALUE self, VALUE data) { CHECK_STRING_TYPE(data); return MessagePack_unpack_impl(self, data, RSTRING_LEN(data)); }