StructSerializer.transmitArrays

Transmits (sends or receives) the serialized data of all array fields in s.

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

struct StructSerializer(bool AllowUnions = false)
static
size_t
transmitArrays
(
bool receive
S
)
(
S* s
,
scope void delegate
(
void[] array
)
transmit
)

Parameters

s S*

struct instance (pointer)

transmit void delegate
(
void[] array
)

sending/receiving callback delegate

Return Value

Type: size_t

passes through return value of transmit

FIXME: Does currently not scan static array fields for a struct type containing dynamic arrays. Example:

struct S1
{
    int[] x;
}

struct S2
{

    S1[7] y;   // elements contain a dynamic array
}

Meta