toBEBytes

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

toBEBytes
(
T
)
()

Parameters

value T

Value for parsing.

Return Value

Type: auto

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