Loading...
Searching...
No Matches
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.
 
unsigned int size
 Size of buf.
 
unsigned int start
 Current read position in the ring buffer.
 
unsigned int avail
 Number of elements available for reading.
 

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: