msgpack

MessagePack serializer and deserializer implementation.

MessagePack is a binary-based serialization specification.

Modules

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

Members

Functions

pack
ubyte[] pack(in Args args)

Serializes args.

unpack
Unpacked unpack(in ubyte[] buffer)

Deserializes buffer using stream deserializer.

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

Deserializes buffer using direct-conversion deserializer.

unpack
Type unpack(in ubyte[] buffer)

Return value version

Mixin templates

MessagePackable
mixin template MessagePackable(Members...)

Handy helper for creating MessagePackable object.

Examples

1 auto data = tuple("MessagePack!", [1, 2], true);
2 
3 auto serialized = pack(data);
4 
5 // ...
6 
7 typeof(data) deserialized;
8 
9 unpack(serialized, deserialized);
10 
11 assert(data == deserialized);

See Also

Meta

Authors

Masahiro Nakagawa

License

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