deserialize

Recursively deserializes val with the provided endianness.

static pure @trusted
deserialize
(
T
B
)
if (
(
is(ElementType!B == ubyte) ||
is(ElementType!B == byte)
)
)

Parameters

T

Type to deserialize to.

bytes B

The bytes to be deserialized.

len size_t

The length of the deserialized data as it were if a T[]. Defaults to -1

endianness Endianness

The endianness to be serialized to. Defaults to native.

Return Value

Type:

The deserialized value of T.

Meta