Struct 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¶
Pointer to caller-provided backing array
variable head¶
Write index (producer advances this)
variable size¶
Total size of backing array in bytes
variable tail¶
Read index (consumer advances this)
The documentation for this class was generated from the following file src/syntropic/util/syn_ringbuf.h