In Files

Parent

Methods

Hash

Public Instance Methods

to_msgpack(out = '') → String click to toggle source

Serializes the Hash into raw bytes. This calls to_msgpack method reflectively for internal keys and values.

static VALUE MessagePack_Hash_to_msgpack(int argc, VALUE *argv, VALUE self)
{
        ARG_BUFFER(out, argc, argv);
        // FIXME check sizeof(st_index_t) > sizeof(unsigned int) && RARRAY_LEN(self) > UINT_MAX
        msgpack_pack_map(out, (unsigned int)RHASH_SIZE(self));
        rb_hash_foreach(self, MessagePack_Hash_to_msgpack_foreach, out);
        return out;
}

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.