index ebbd9e3afff3dcc4bf143afa6019114c7cb4038f..96b4f86bee3aa8937899a9af08314f9fa5866860 100644 (file)
#include <stdarg.h>
#include <stdio.h>
+#include <unistd.h>
#ifdef __cplusplus
extern "C" {
ssize_t
sdb_strbuf_chomp(sdb_strbuf_t *strbuf);
+/*
+ * sdb_strbuf_skip:
+ * Removes 'n' bytes from the buffer starting at offset 'offset'.
+ */
+void
+sdb_strbuf_skip(sdb_strbuf_t *strbuf, size_t offset, size_t n);
+
+/*
+ * sdb_strbuf_clear:
+ * Clear the buffer but do not deallocate memory.
+ */
+void
+sdb_strbuf_clear(sdb_strbuf_t *strbuf);
+
/*
* sdb_strbuf_string:
* Returns the content of the string buffer. The caller may not modify the