#include <libkern/arm/OSByteOrder.h>

libkern/arm/OSByteOrder.h Kernel.framework

for _ARM_ARCH_6
includes: Kernel/stdint.h, libkern/arm/_OSByteOrder.h, Kernel/sys/_types/_os_inline.h, arm/arch.h
6 functions · 3 structs

struct_OSUnalignedU16

size 2, align 1 · packed
volatile uint16_t__val

struct_OSUnalignedU32

size 4, align 1 · packed
volatile uint32_t__val

struct_OSUnalignedU64

size 8, align 1 · packed
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.