Unpacker.unpackMap

Deserializes the container object and assigns to each argument.

These methods check the length. Do rollback if the length of arguments is different from length of deserialized object.

In unpackMap, the number of arguments must be even.

struct Unpacker(Stream = const(ubyte)[])
nothrow
bool
unpackMap
(
Types...
)
(
ref Types objects
)
if (
Types.length > 1
)
if (
isInputBuffer!(Stream, ubyte)
)

Parameters

objects Types

the references of object to assign.

Return Value

Type: bool

true if succeed

Meta