EndianSequence.pack

Deconstructs (saves) a passed value to unsigned byte array.

class EndianSequence
static
ubyte[]
pack
(
T
)

Parameters

byteOrder BYTE_ORDER

Byte order for value (little or big endian).

value T

Value for deconstructing.

Typical usage:

ubyte[] tmp = EndianSequence.pack!uint(150_000);

Meta