MOS Source Code
Loading...
Searching...
No Matches
ring_buffer.c File Reference
+ Include dependency graph for ring_buffer.c:

Go to the source code of this file.

Functions

static u8 ring_buffer_get (u8 *data, ring_buffer_pos_t *pos, size_t index)
 
ring_buffer_tring_buffer_create (size_t capacity)
 
ring_buffer_tring_buffer_create_at (void *data, size_t capacity)
 
void ring_buffer_pos_init (ring_buffer_pos_t *pos, size_t capacity)
 
void ring_buffer_destroy (ring_buffer_t *buffer)
 
bool ring_buffer_resize (ring_buffer_t *buffer, size_t new_capacity)
 
size_t ring_buffer_pos_push_back (u8 *data, ring_buffer_pos_t *pos, const u8 *target, size_t size)
 
size_t ring_buffer_pos_pop_back (u8 *data, ring_buffer_pos_t *pos, u8 *target, size_t size)
 
size_t ring_buffer_pos_push_front (u8 *data, ring_buffer_pos_t *pos, const u8 *target, size_t size)
 
size_t ring_buffer_pos_pop_front (u8 *data, ring_buffer_pos_t *pos, u8 *target, size_t size)
 

Function Documentation

◆ ring_buffer_get()

static u8 ring_buffer_get ( u8 * data,
ring_buffer_pos_t * pos,
size_t index )
static

Definition at line 8 of file ring_buffer.c.

Referenced by ring_buffer_resize().