rapido
Data Fields
rapido_range_buffer_t Struct Reference

A growing and cycling buffer, also tracking the ranges of bytes present in the buffer following a global read_offset. More...

#include <rapido.h>

Data Fields

struct {
   void *   data
 
   size_t   capacity
 
   size_t   offset
 
buffer
 
rapido_range_list_t ranges
 
size_t read_offset
 

Detailed Description

A growing and cycling buffer, also tracking the ranges of bytes present in the buffer following a global read_offset.

The offset advances as data is read out of the buffer. Due to cycling, the buffer can allocate or return a smaller memory zone than wanted.


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