pub unsafe extern "C" fn spa_ringbuffer_get_write_index(
rbuf: *mut spa_ringbuffer,
index: *mut u32
) -> i32
Get the write index and the number of bytes inside the ringbuffer.
\param rbuf a spa_ringbuffer \param index the value of writeindex, should be taken modulo the size of the ringbuffer memory to get the offset in the ringbuffer memory \return the fill level of \a rbuf. values < 0 mean there was an underrun. values > rbuf->size means there was an overrun. Subtract from the buffer size to get the number of bytes available for writing.