aboutsummaryrefslogtreecommitdiff
path: root/buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'buffer.h')
-rw-r--r--buffer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/buffer.h b/buffer.h
index 759217a..1730b05 100644
--- a/buffer.h
+++ b/buffer.h
@@ -20,6 +20,8 @@ void buffer_release(Buffer*);
void buffer_clear(Buffer*);
/* reserve space to store at least size bytes in this buffer.*/
bool buffer_reserve(Buffer*, size_t size);
+/* reserve space for at least `len` more bytes in this buffer */
+bool buffer_grow(Buffer*, size_t len);
/* if buffer is not empty, make sure it is NUL terminated */
bool buffer_terminate(Buffer*);
/* replace buffer content with given data, growing the buffer if needed */