unaligned.h File Reference

Unaligned but safe memory access functions. More...

Detailed Description

Unaligned but safe memory access functions.

Author
Kaspar Schleiser kaspa.nosp@m.r@sc.nosp@m.hleis.nosp@m.er.d.nosp@m.e

Definition in file unaligned.h.

#include <stdint.h>
+ Include dependency graph for unaligned.h:
+ This graph shows which files directly or indirectly include this file:

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. More...
 
static uint32_t unaligned_get_u32 (const void *ptr)
 Get uint32_t from possibly unaligned pointer. More...
 
static uint64_t unaligned_get_u64 (const void *ptr)
 Get uint64_t from possibly unaligned pointer. More...