ringbuffer_t Struct Reference

Ringbuffer. More...

Detailed Description

Non thread-safe FIFO ringbuffer implementation around a char array.

Definition at line 30 of file ringbuffer.h.

#include <ringbuffer.h>

Data Fields

char * buf
 Buffer to operate on. More...
 
unsigned int size
 Size of buf. More...
 
unsigned int start
 Current read position in the ring buffer. More...
 
unsigned int avail
 Number of elements available for reading. More...
 

Field Documentation

unsigned int ringbuffer_t::avail

Definition at line 34 of file ringbuffer.h.

char* ringbuffer_t::buf

Definition at line 31 of file ringbuffer.h.

unsigned int ringbuffer_t::size

Definition at line 32 of file ringbuffer.h.

unsigned int ringbuffer_t::start

Definition at line 33 of file ringbuffer.h.


The documentation for this struct was generated from the following file: