qb_rb_chunk_read3
Read the oldest chunk into data_out.
Usage
#include <qb/qbrb.h>
ssize_t qb_rb_chunk_read(
qb_ringbuffer_t *rb, /* ringbuffer instance */
void *data_out, /* (in/out) the chunk will be memcpy'ed into this. */
size_t len, /* (in) the size of data_out. */
int32_t ms_timeout /* the amount od time to wait for new data. */
);
Params
rb ringbuffer instance
data_out (in/out) the chunk will be memcpy'ed into this.
len (in) the size of data_out.
ms_timeout the amount od time to wait for new data.
Overview
This is the same as qb_rb_chunk_peek() memcpy() and qb_rb_chunk_reclaim().
Return value
the size of the chunk, or error.
Releases
4 releases since Debian 11 (Bullseye); the text changed 3 times.