htobe16_internal

Converts a 16-bit value from host byte order to big-endian byte order.

Synopsis

Declared in <compat/endian.h>

constexpr
uint16_t
htobe16_internal(uint16_t host_16bits);

Return Value

The value in big-endian byte order.

Parameters

NameDescription
host_16bitsThe value in host byte order.