nu_etoh

Converts bytes between system and the given endianness.

This essentially flips the byte-order within the type if the given endianness does not match the system endiannes.

  1. T[] nu_etoh(T[] in_, Endianess endian)
    @trusted @nogc nothrow
    T[]
    nu_etoh
    (
    T
    )
  2. T[] nu_etoh(T[] in_)
  3. T nu_etoh(T in_)
  4. T nu_etoh(T in_, Endianess endian)

Parameters

in_ T[]

the range to flip the individual values within.

endian Endianess

The endianness to convert between.

Return Value

Type: T[]

A slice of the input, pointing to the same memory.

Meta