pub unsafe extern "C" fn aws_ring_buffer_acquire_up_to(
ring_buf: *mut aws_ring_buffer,
minimum_size: usize,
requested_size: usize,
dest: *mut aws_byte_buf
) -> c_int
Expand description
Attempts to acquire requested_size
buffer and stores the result in dest
if successful. If not available, it will
attempt to acquire anywhere from 1 byte to requested_size
. Returns AWS_OP_SUCCESS if some buffer space is available
for use, AWS_OP_ERR otherwise.