Dependencies/Build/mac/include/faust/gui/ring-buffer.h
static size_t
ringbuffer_read_space (const ringbuffer_t * rb)
{
	size_t w, r;

	w = rb->write_ptr;
	r = rb->read_ptr;

	if (w > r) {
		return w - r;
	} else {
		return (w - r + rb->size) & rb->size_mask;
	}
}
/* Return the number of bytes available for reading. This is the
   number of bytes in front of the read pointer and behind the write
   pointer.  */
Return the number of bytes available for reading. This is the
number of bytes in front of the read pointer and behind the write
pointer.
Return the number of bytes available for reading . This is the number of bytes in front of the read pointer and behind the write pointer .
static size_t
ringbuffer_read_space (const ringbuffer_t * rb)
{
	size_t w, r;
	w = rb->write_ptr;
	r = rb->read_ptr;
	if (w > r) {
		return w - r;
	} else {
		return (w - r + rb->size) & rb->size_mask;
	}
}
static size_t ringbuffer_read_space ( const ringbuffer_t * rb ) { size_t w , r ; w = rb -> write_ptr ; r = rb -> read_ptr ; if ( w > r ) { return w - r ; } else { return ( w - r + rb -> size ) & rb -> size_mask ; } }
Return the number of bytes available for reading.
Return the number of bytes available for reading .