![]() |
MOS Source Code
|
#include <algorithm>
#include <mos/allocator.hpp>
#include <mos/lib/structures/ring_buffer.hpp>
#include <mos/moslib_global.hpp>
#include <mos_stdlib.hpp>
#include <mos_string.hpp>
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 10 of file ring_buffer.cpp.
Referenced by ring_buffer_resize().