module MessagePack

def load(src, param = nil)

def load(src, param = nil)
  unpacker = nil
  if src.is_a? String
    unpacker = DefaultFactory.unpacker param
    unpacker.feed src
  else
    unpacker = DefaultFactory.unpacker src, param
  end
  unpacker.full_unpack
end

def pack(v, *rest)

def pack(v, *rest)
  packer = DefaultFactory.packer(*rest)
  packer.write v
  packer.full_pack
end