In Files

Parent

Methods

Symbol

Public Instance Methods

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

Serializes the Symbol into raw bytes.

static VALUE MessagePack_Symbol_to_msgpack(int argc, VALUE *argv, VALUE self)
{
#ifdef COMPAT_HAVE_ENCODING
        return MessagePack_String_to_msgpack(argc, argv, rb_id2str(SYM2ID(self)));
#else
        ARG_BUFFER(out, argc, argv);
        const char* name = rb_id2name(SYM2ID(self));
        size_t len = strlen(name);
        msgpack_pack_raw(out, len);
        msgpack_pack_raw_body(out, name, len);
        return out;
#endif
}

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.