msgpack

MessagePack serializer and deserializer implementation.

MessagePack is a binary-based serialization specification.

Modules

attribute
module msgpack.attribute
Undocumented in source.
buffer
module msgpack.buffer
Undocumented in source.
common
module msgpack.common
Undocumented in source.
exception
module msgpack.exception
Undocumented in source.
packer
module msgpack.packer
Undocumented in source.
register
module msgpack.register
Undocumented in source.
streaming_unpacker
module msgpack.streaming_unpacker
Undocumented in source.
unpacker
module msgpack.unpacker
Undocumented in source.
value
module msgpack.value
Undocumented in source.

Public Imports

msgpack.common
public import msgpack.common;
Undocumented in source.
msgpack.attribute
public import msgpack.attribute;
Undocumented in source.
msgpack.buffer
public import msgpack.buffer;
Undocumented in source.
msgpack.exception
public import msgpack.exception;
Undocumented in source.
msgpack.packer
public import msgpack.packer;
Undocumented in source.
msgpack.unpacker
public import msgpack.unpacker;
Undocumented in source.
msgpack.streaming_unpacker
public import msgpack.streaming_unpacker;
Undocumented in source.
msgpack.register
public import msgpack.register;
Undocumented in source.
msgpack.value
public import msgpack.value;
Undocumented in source.

Members

Functions

pack
ubyte[] pack(Args args)

Serializes args.

unpack
Unpacked unpack(ubyte[] buffer)

Deserializes buffer using stream deserializer.

unpack
void unpack(ubyte[] buffer, Args args)

Deserializes buffer using direct-conversion deserializer.

unpack
Type unpack(ubyte[] buffer)

Return value version

Mixin templates

MessagePackable
mixintemplate MessagePackable(Members...)

Handy helper for creating MessagePackable object.

Examples

auto data = tuple("MessagePack!", [1, 2], true);

auto serialized = pack(data);

// ...

typeof(data) deserialized;

unpack(serialized, deserialized);

assert(data == deserialized);

See Also

Meta

License

<a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.

Authors

Masahiro Nakagawa