MOS Source Code
|
#include <mos/lib/structures/ring_buffer.h>
#include <mos/moslib_global.h>
#include <mos_stdlib.h>
#include <mos_string.h>
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_t * | ring_buffer_create (size_t capacity) |
ring_buffer_t * | ring_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) |
|
static |
Definition at line 8 of file ring_buffer.c.
Referenced by ring_buffer_resize().