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 6c6bc82..91932c6 100644
--- a/buffer.h
+++ b/buffer.h
@@ -50,6 +50,8 @@ bool buffer_appendf(Buffer*, const char *fmt, ...);
size_t buffer_length0(Buffer*);
/* return length of a buffer including possible NUL byte */
size_t buffer_length(Buffer*);
+/* return current maximal capacity in bytes of this buffer */
+size_t buffer_capacity(Buffer*);
/* pointer to buffer data, guaranteed to return a NUL terminated
* string even if buffer is empty */
const char *buffer_content0(Buffer*);