module MessagePack
def load(src, param = nil)
def load(src, param = nil) unpacker = nil if src.is_a? String unpacker = DefaultFactory.unpacker param || DEFAULT_EMPTY_PARAMS unpacker.feed src else unpacker = DefaultFactory.unpacker src, param || DEFAULT_EMPTY_PARAMS end unpacker.full_unpack end
def pack(v, *rest)
def pack(v, *rest) packer = DefaultFactory.packer(*rest) packer.write v packer.full_pack end