Template Struct Endian< std::uint16_t >
Defined in File Endian.h
Struct Documentation
-
template<>
struct Endian<std::uint16_t> Perform conversions between host byte ordering and big endian for unsigned 16-bit integers.
- Template Parameters
unsigned – 16-bit integer
Public Static Functions
-
static inline std::uint16_t htobe(std::uint16_t in)
Convert host byte order input to big endian output.
- Parameters
in – host byte ordered input value
- Returns
std::uint16_t big endian representation of the input value
-
static inline std::uint16_t betoh(std::uint16_t in)
Convert big endian input to host byte order output.
- Parameters
in – big endian input value
- Returns
std::uint16_t host byte ordered representation of the input value