nulib.memory.endian

Endianess Helpers

Members

Enums

Endianess
enum Endianess

Endianness

Functions

nu_betoh
T nu_betoh(T in_)

Converts big endian type to system endianness.

nu_betoh
T[] nu_betoh(T[] in_)

Converts a range of big endian values to the system endianness.

nu_etoh
T[] nu_etoh(T[] in_, Endianess endian)

Converts bytes between system and the given endianness.

nu_etoh
T[] nu_etoh(T[] in_)

Converts bytes between system and the given endianness.

nu_etoh
T nu_etoh(T in_)

Converts bytes between system and the given endianness.

nu_etoh
T nu_etoh(T in_, Endianess endian)

Converts bytes between system and the given endianness.

nu_flip_bytes
T nu_flip_bytes(T in_)

Flips the endianness of the given value.

nu_letoh
T nu_letoh(T in_)

Converts little endian type to system endianness.

nu_letoh
T[] nu_letoh(T[] in_)

Converts a slice of little endian values to the system endianness.

nu_ntoh
T nu_ntoh(T in_)

Converts between network order endianness and the system endiannes.

Manifest constants

NATIVE_ENDIAN
enum NATIVE_ENDIAN;
Undocumented in source.
NATIVE_ENDIAN
enum NATIVE_ENDIAN;
Undocumented in source.

Variables

ALT_ENDIAN
enum Endianess ALT_ENDIAN;

The opposite endianness of what the system being compiled for has.

NETWORK_ORDER
enum Endianess NETWORK_ORDER;

Network order endianness.

Meta

Authors

Luna Nielsen