Skip to content

Struct SYN_RingBuf

ClassList > SYN_RingBuf

Ring buffer control structure. More...

  • #include <syn_ringbuf.h>

Public Attributes

Type Name
uint8_t * buf
volatile size_t head
size_t size
volatile size_t tail

Detailed Description

All fields are considered private. Use the API functions below.

Public Attributes Documentation

variable buf

uint8_t* SYN_RingBuf::buf;

Pointer to caller-provided backing array


variable head

volatile size_t SYN_RingBuf::head;

Write index (producer advances this)


variable size

size_t SYN_RingBuf::size;

Total size of backing array in bytes


variable tail

volatile size_t SYN_RingBuf::tail;

Read index (consumer advances this)



The documentation for this class was generated from the following file src/syntropic/util/syn_ringbuf.h