#include <libkern/arm/OSByteOrder.h>
libkern/arm/OSByteOrder.h
for _ARM_ARCH_6
struct_OSUnalignedU16
| volatile uint16_t | __val |
struct_OSUnalignedU32
| volatile uint32_t | __val |
struct_OSUnalignedU64
| volatile uint64_t | __val |
functionOSReadSwapInt16
OS_INLINE uint16_t OSReadSwapInt16(const volatile void * _base, uintptr_t _offset)
▾
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu libkern/libkern/arm/OSByteOrder.h
Reads the 16-bit integer at address _base + _offset, tolerating unaligned addresses, and returns it with its bytes reversed. Implements the non-host-order side of the OSReadLittleInt16/OSReadBigInt16 macros.
functionOSReadSwapInt32
OS_INLINE uint32_t OSReadSwapInt32(const volatile void * _base, uintptr_t _offset)
▾
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu libkern/libkern/arm/OSByteOrder.h
Reads the 32-bit integer at address _base + _offset, tolerating unaligned addresses, and returns it with its bytes reversed. Implements the non-host-order side of the OSReadLittleInt32/OSReadBigInt32 macros.
functionOSReadSwapInt64
OS_INLINE uint64_t OSReadSwapInt64(const volatile void * _base, uintptr_t _offset)
▾
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu libkern/libkern/arm/OSByteOrder.h
Reads the 64-bit integer at address _base + _offset, tolerating unaligned addresses, and returns it with its bytes reversed. Implements the non-host-order side of the OSReadLittleInt64/OSReadBigInt64 macros.
functionOSWriteSwapInt16
OS_INLINE void OSWriteSwapInt16(volatile void * _base, uintptr_t _offset, uint16_t _data)
▾
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu libkern/libkern/arm/OSByteOrder.h
Byte-reverses the 16-bit value _data and stores it at address _base + _offset, tolerating unaligned addresses. Implements the non-host-order side of the OSWriteLittleInt16/OSWriteBigInt16 macros.
functionOSWriteSwapInt32
OS_INLINE void OSWriteSwapInt32(volatile void * _base, uintptr_t _offset, uint32_t _data)
▾
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu libkern/libkern/arm/OSByteOrder.h
Byte-reverses the 32-bit value _data and stores it at address _base + _offset, tolerating unaligned addresses. Implements the non-host-order side of the OSWriteLittleInt32/OSWriteBigInt32 macros.
functionOSWriteSwapInt64
OS_INLINE void OSWriteSwapInt64(volatile void * _base, uintptr_t _offset, uint64_t _data)
▾
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu libkern/libkern/arm/OSByteOrder.h
Byte-reverses the 64-bit value _data and stores it at address _base + _offset, tolerating unaligned addresses. Implements the non-host-order side of the OSWriteLittleInt64/OSWriteBigInt64 macros.