LIBRARY
-lvrbSYNOPSIS
#include <vrb.h>size_t vrb_data_ptr(vrb_p vrb);
DESCRIPTION
vrb_data_ptr returns the pointer to the beginning of the contiguous block of data within the virtual ring buffer. The pointer has meaning only if there is data in the buffer. If there is no data in the buffer, an arbitrary pointer is returned and must not be used. Use vrb_data_len(3) or vrb_is_empty(3) to determine if vrb_data_ptr(3) has a meaningful pointer.The caller may access all of this data, and should call vrb_take(3) to indicate how much data has been removed from the buffer.
ARGUMENTS
vrb_p vrbspecifies the virtual ring buffer to obtain the data pointer from. If a NULL or invalid pointer is given, results are unpredictable and are likely to be disasterous.
RETURN VALUE
size_tThe pointer to the data in the virtual ring buffer is returned.