aboutsummaryrefslogtreecommitdiff
path: root/src/lib/buf/buffers.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/buf/buffers.h')
-rw-r--r--src/lib/buf/buffers.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/buf/buffers.h b/src/lib/buf/buffers.h
index fadd4174c0..d8a77feb72 100644
--- a/src/lib/buf/buffers.h
+++ b/src/lib/buf/buffers.h
@@ -29,6 +29,9 @@ void buf_free_(buf_t *buf);
void buf_clear(buf_t *buf);
buf_t *buf_copy(const buf_t *buf);
+/** Maximum bytes in a buffer, inclusive. */
+#define BUF_MAX_LEN (INT_MAX - 1)
+
MOCK_DECL(size_t, buf_datalen, (const buf_t *buf));
size_t buf_allocation(const buf_t *buf);
size_t buf_slack(const buf_t *buf);