MessagePack for Elixir
Elixir
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
README.md
mix.exs
mix.lock
package.head.exs

README.md

MsgPack for Elixir

MsgPack (http://msgpack.org) implementation for Elixir

Examples

iex(1)> b = MsgPack.pack([1,2,["3", [{"a","b"}]]])
<<147,1,2,146,161,51,129,161,97,161,98>>
iex(2)> b |> MsgPack.unpack
{[1,2,["3",[{"a","b"}]]],""}
iex(3)> [b,b] |> iolist_to_binary |> MsgPack.next
{<<147,1,2,146,161,51,129,161,97,161,98>>,<<147,1,2,146,161,51,129,161,97,161,98>>}