toBEBytes

Parse a value into bytes in big-endian order. Helper for EndianSequence.pack with preset Big Endian byte order (BE).

alias toBEBytes = EndianSequence!(BYTE_ORDER.BIG_ENDIAN).pack

Return Value

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

Typical usage:

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

Meta