Template Struct Endian< std::uint32_t >

Struct Documentation

template<>
struct Endian<std::uint32_t>

Perform conversions between host byte ordering and big endian for unsigned 32-bit integers.

Template Parameters

unsigned – 32-bit integer

Public Static Functions

static inline std::uint32_t htobe(std::uint32_t in)

Convert host byte order input to big endian output.

Parameters

in – host byte ordered input value

Returns

std::uint32_t big endian representation of the input value

static inline std::uint32_t betoh(std::uint32_t in)

Convert big endian input to host byte order output.

Parameters

in – big endian input value

Returns

std::uint32_t host byte ordered representation of the input value