nu_ntoh

Converts between network order endianness and the system endiannes.

pragma(inline, true) @trusted @nogc nothrow
T
nu_ntoh
(
T
)
(
T in_
)
if (
__traits(isScalar, T)
)

Parameters

in_ T

The value to potentially flip.

Return Value

Type: T

If NATIVE_ENDIAN does not match NETWORK_ORDER, returns the input with the byte order reversed, otherwise returns the original value.

Meta