serialize

Recursively serializes val with the provided endianness.

static pure @trusted
ubyte[]
serialize
(
bool RAW = false
T
)

Parameters

RAW

If true, arrays won't have their length serialized. Defaults to false.

val T

The value to be serialized.

endianness Endianness

The endianness to be serialized to. Defaults to native.

Return Value

Type: ubyte[]

Serialized byte array.

Meta