toLEBytes

Parse a value into bytes in little-endian order. Helper for EndianSequence.pack with preset Little Endian byte order (LE).

alias toLEBytes = EndianSequence!(BYTE_ORDER.LITTLE_ENDIAN).pack

Return Value

An array of unsigned bytes representing the value passed as a parameter in little-endian order

Typical usage:

ubyte[] tmp = toLEBytes!uint(150_000);

Meta