Function rbuffer_add
Defined in File rbuffer.h
Function Documentation
-
status_t rbuffer_add(struct rbuffer *rb, const void *e)
Add an item into the ringbuffer.
This function adds an item into the ringbuffer. If it is currently full, the new entry will be added, and previous data overwritten, UNLESS the ringbuffer is configured to action like a FIFO (RCSW_DS_RBUFFER_AS_FIFO passed during initialization).
Sets errno to ENOSPC on error.
- Parameters:
rb – The ringbuffer handle.
e – The element to add.
- Returns: