Function rbuffer_size

Function Documentation

static inline size_t rbuffer_size(const struct rbuffer *const rb)

Determine # elements currently in the ringbuffer.

Parameters:

rb – The ringbuffer handle.

Returns:

# elements in ringbuffer, or 0 on ERROR.