Reset the internal "available" size, and read and write pointers, making an empty buffer.
This is not thread safe.
@param rb a pointer to the ringbuffer structure. @param sz the new size, that must be less than allocated size.
See Implementation
Reset the internal "available" size, and read and write pointers, making an empty buffer.
This is not thread safe.
@param rb a pointer to the ringbuffer structure. @param sz the new size, that must be less than allocated size.