Reverses the byte order of a 16‐bit value.

Synopsis

Declared in <compat/byteswap.h>

constexpr
uint16_t
internal_bswap_16(uint16_t x);

Return Value

The value with its byte order reversed.

Parameters

Name

Description

x

The value whose two bytes are swapped.

Created with MrDocs