ringbuffer_t Struct Reference

Ringbuffer. More...

Detailed Description

Ringbuffer.

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

Definition at line 36 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

◆ avail

unsigned int ringbuffer_t::avail

Number of elements available for reading.

Definition at line 40 of file ringbuffer.h.

◆ buf

char* ringbuffer_t::buf

Buffer to operate on.

Definition at line 37 of file ringbuffer.h.

◆ size

unsigned int ringbuffer_t::size

Size of buf.

Definition at line 38 of file ringbuffer.h.

◆ start

unsigned int ringbuffer_t::start

Current read position in the ring buffer.

Definition at line 39 of file ringbuffer.h.


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