Module | MessagePack |
In: |
ext/pack.c
ext/rbinit.c ext/unpack.c |
rb_define_method(cUnpacker, "execute", MessagePack_Unpacker_execute, 2); rb_define_method(cUnpacker, "execute_limit", MessagePack_Unpacker_execute_limit, 3); rb_define_method(cUnpacker, "finished?", MessagePack_Unpacker_finished_p, 0); rb_define_method(cUnpacker, "data", MessagePack_Unpacker_data, 0); rb_define_method(cUnpacker, "reset", MessagePack_Unpacker_reset, 0);
Document-method: MessagePack.pack
Serializes the object into raw bytes. The encoding of the string is ASCII-8BIT on Ruby 1.9. This method is same as object.to_msgpack(out = ’’).
out is an object that implements *<<* method like String or IO.
Document-method: MessagePack::Unpacker.unpack
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.
Document-method: MessagePack::Unpacker.unpack_limit
Deserializes one object over the specified buffer upto limit bytes.
UnpackError is throw when parse error is occured, the buffer is insufficient to deserialize one object or there are extra bytes.