Go to the documentation of this file.
42#ifndef __MUSTANGPEAK_ENDIAN_HELPER__
43#define __MUSTANGPEAK_ENDIAN_HELPER__
uint16_t swap_endian16(uint16_t x)
Reverses the byte order of a 16-bit unsigned integer.
Definition mustangpeak_endian_helper.c:70
uint64_t swap_endian64(uint64_t x)
Reverses the byte order of a 64-bit unsigned integer.
Definition mustangpeak_endian_helper.c:125
uint32_t swap_endian32(uint32_t x)
Reverses the byte order of a 32-bit unsigned integer.
Definition mustangpeak_endian_helper.c:99
uint8_t swap_endian8(uint8_t x)
Returns the input byte unchanged (no-op for API symmetry).
Definition mustangpeak_endian_helper.c:51
Copyright (c) 2026 Jim Kueneman all rights reserved. See the License