int vrb_put_all(vrb_p vrb, char *source, size_t size);
DESCRIPTIONvrb_put_all puts caller provided data into a virtual ring buffer only if all the data will fit.
specifies which virtual ring buffer.
specifies the location where to copy the data from.
specifies the length of data provided by the caller.
If the data fits and is copied, 0 is returned, otherwise -1 is returned.
ERRORSIf an error is returned, then errno will have one of the following values:
- An invalid virtual ring buffer pointer was specified.
- The virtual ring buffer does not have enough space to hold all of the data.