#include <stddef.h>
#include <stdint.h>
Go to the source code of this file.
◆ RBUFFER_EACH
#define RBUFFER_EACH |
( |
|
buf, |
|
|
|
c, |
|
|
|
i |
|
) |
| |
◆ RBUFFER_EACH_REVERSE
#define RBUFFER_EACH_REVERSE |
( |
|
buf, |
|
|
|
c, |
|
|
|
i |
|
) |
| |
Value: for (
size_t i =
buf->size; \
for (char c = 0; \
)
◆ RBUFFER_UNTIL_EMPTY
#define RBUFFER_UNTIL_EMPTY |
( |
|
buf, |
|
|
|
rptr, |
|
|
|
rcnt |
|
) |
| |
Value: for (size_t rcnt = 0, _r = 1; _r; _r = 0) \
buf->size; \
◆ RBUFFER_UNTIL_FULL
#define RBUFFER_UNTIL_FULL |
( |
|
buf, |
|
|
|
wptr, |
|
|
|
wcnt |
|
) |
| |
Value: for (size_t wcnt = 0, _r = 1; _r; _r = 0) \
◆ RBuffer
◆ rbuffer_callback
Type of function invoked during certain events:
- When the RBuffer switches to the full state
- When the RBuffer switches to the non-full state
char * rbuffer_get(RBuffer *buf, size_t index) FUNC_ATTR_NONNULL_ALL FUNC_ATTR_NONNULL_RET
Definition: rbuffer.c:199