Class daisy::RingBuffer< T, 0 >¶
ClassList > daisy > RingBuffer< T, 0 >
#include <ringbuffer.h>
Public Functions¶
Type | Name |
---|---|
void | Flush () |
T | ImmediateRead () |
void | ImmediateRead (T * destination, size_t num_elements) |
void | Init () |
void | Overwrite (T v) |
void | Overwrite (const T * source, size_t num_elements) |
T | Read () |
RingBuffer () |
|
void | Write (T v) |
size_t | capacity () const |
size_t | readable () const |
size_t | writable () const |
Detailed Description¶
Utility Ring Buffer imported from pichenettes/stmlib
Public Functions Documentation¶
function Flush¶
Flush the buffer
function ImmediateRead [½]¶
Returns:
Read value
function ImmediateRead [2/2]¶
Parameters:
destination
&num_elements
&
function Init¶
Initialize ringbuffer
function Overwrite [½]¶
Parameters:
v
Value to overwrite
function Overwrite [2/2]¶
Parameters:
source
3num_elements
&
function Read¶
Returns:
Read value
function RingBuffer¶
function Write¶
Parameters:
v
Value to write
function capacity¶
Returns:
0
function readable¶
Returns:
0
function writable¶
Returns:
0
The documentation for this class was generated from the following file external-docs/libDaisy/src/util/ringbuffer.h