Msgpax v2.2.0 Msgpax.Bin View Source
A struct to represent the MessagePack Binary type.
Elixir binaries are serialized and de-serialized as MessagePack
strings:
Msgpax.Bin
is used when you want to enforce the serialization of a binary
into the Binary MessagePack type. De-serialization functions (such as
Msgpax.unpack/2
) provide an option to deserialize Binary terms (which are
de-serialized to Elixir binaries by default) to Msgpax.Bin
structs.
Link to this section Summary
Functions
Creates a new Msgpax.Bin
struct from the given binary
Link to this section Types
Link to this section Functions
Creates a new Msgpax.Bin
struct from the given binary.
Examples
iex> Msgpax.Bin.new("foo")
#Msgpax.Bin<"foo">