dmi_bswap

Synopsis

#include <opendmi/utils/endian.h>

uint16_t dmi_bswap16(uint16_t value);
uint32_t dmi_bswap32(uint32_t value);
uint64_t dmi_bswap64(uint64_t value);

Description

These functions return a value in which the order of the bytes in their 16-, 32-, or 64-bit arguments is reversed.

Return value

These functions return the value of their argument with the bytes reversed.

Errors

None.

See also

bswap(3)