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

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

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