qb_rb_chunk_write3
Write a chunk to the ring buffer.
Usage
#include <qb/qbrb.h>
ssize_t qb_rb_chunk_write(
qb_ringbuffer_t *rb, /* ringbuffer instance */
const void *data, /* (in) the data to write */
size_t len /* (in) the size of the chunk. */
);
Params
rb ringbuffer instance
data (in) the data to write
len (in) the size of the chunk.
Overview
This simply calls qb_rb_chunk_alloc() and then qb_rb_chunk_commit().
Return value
the amount of bytes actually buffered (either len or -1).
Releases
4 releases since Debian 11 (Bullseye); the text changed 3 times.