StructSerializer.transmitArray

Transmits (sends or receives) the serialized data of array. That is, first transmit the array content byte length as size_t value, then the array content raw data.

Template parameter: receive = true: receive array data, false: send array data

struct StructSerializer(bool AllowUnions = false)
static
size_t
transmitArray
(
bool receive
T
)
(
ref T[] array
,
scope void delegate
(
void[] data
)
transmit_dg
)

Parameters

array T[]

array to send serialized data of (pointer)

transmit_dg void delegate
(
void[] data
)

sending/receiving callback delegate

Return Value

Type: size_t

passes through return value of send

TODO: array needs to be duped

Meta