extern size_t ringb_write_space(const ringb_t *rb);
+/* Fill the ring buffer for nbytes at the beginning with zeros
+ * rb a pointer to the ring buffer structure
+ * nbytes the number of bytes to be written */
+
+extern void ringb_clear(ringb_t *rb, size_t nbytes);
+
+/* Reset the read and write pointers, making an empty buffer.
+ * This is not thread safe.
+ * Fill the ring buffer for nbytes at the beginning with zeros
+ * rb a pointer to the ring buffer structure
+ * nbytes the number of bytes to be written */
+
+extern void ringb_restart(ringb_t *rb, size_t nbytes);
+
#endif