Function rbuffer_capacity

Function Documentation

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

Get the capacity of the ringbuffer.

Parameters:

rb – The ringbuffer handle.

Returns:

The capacity of the ringbuffer, or 0 on ERROR.