PackerImpl.packMap

Serializes the arguments as container to stream.

packer.packArray(true, 1);  // -> [true, 1]
packer.packMap("Hi", 100);  // -> ["Hi":100]

In packMap, the number of arguments must be even.

struct PackerImpl(Stream)
ref
packMap
(
Types...
)
(
auto ref const Types objects
)
if (
isOutputRange!(Stream, ubyte) &&
isOutputRange!(Stream, ubyte[])
)

Parameters

objects Types

the contents to serialize.

Return Value

self, i.e. for method chaining.

Meta