EndianSequence.unpack

Constructs (restores) a value from the passed in byte array.

class EndianSequence
static
T
unpack
(
T
)

Parameters

byteOrder BYTE_ORDER

Byte order for value (little or big endian).

bytes ubyte[]

Array of unsigned bytes for reconstructing value.

Typical usage:

uint tmp = EndianSequence.unpack!uint([0xab, 0xcd, 0xef, 0x00]);

Meta