Function rbuffer_clear

Function Documentation

status_t rbuffer_clear(struct rbuffer *rb)

Clear a rbuffer, but do not deallocate its memory.

This resets the head/tail pointers, and zeros the managed memory.

Parameters:

rb – The ringbuffer handle.

Returns:

status_t.