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

Name

Description

host_16bits

The value in host byte order.

Created with MrDocs