Packer.packArray

Serializes the arguments as container to buf.

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

In packMap, the number of arguments must be even.

struct Packer(Stream = ubyte[])
ref
packArray
(
Types...
)
(
auto ref const Types objects
)
if (
isOutputBuffer!(Stream, ubyte)
)

Parameters

objects Types

the contents to serialize.

Return Value

Type: TThis

self, i.e. for method chaining.

Meta