Unaligned but safe memory access functions. More...
Unaligned but safe memory access functions.
Definition in file unaligned.h.
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | uint16_una_t |
Unaligned access helper struct (uint16_t version) More... | |
struct | uint32_una_t |
Unaligned access helper struct (uint32_t version) More... | |
struct | uint64_una_t |
Unaligned access helper struct (uint64_t version) More... | |
Functions | |
static uint16_t | unaligned_get_u16 (const void *ptr) |
Get uint16_t from possibly unaligned pointer. | |
static uint32_t | unaligned_get_u32 (const void *ptr) |
Get uint32_t from possibly unaligned pointer. | |
static uint64_t | unaligned_get_u64 (const void *ptr) |
Get uint64_t from possibly unaligned pointer. | |