rcx

library of miscellaneous bits of C code
git clone git://git.rr3.xyz/rcx
Log | Files | Refs | README | LICENSE

commit 5899a546a7c6e4dde5fc7b2bda2ff6e4bddbd90d
parent 3e56f572281af2cbcec5e3df5142b70d977cdb21
Author: Robert Russell <robertrussell.72001@gmail.com>
Date:   Fri, 24 Mar 2023 16:46:02 -0700

buffer: expose means to get buffer header size

Necessary for buf_memory usage.

Diffstat:
Minc/buffer.h | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/inc/buffer.h b/inc/buffer.h @@ -12,6 +12,8 @@ * really make sense, since eventually the header size becomes negligible. * We could also use a flag bit to disable the refcnt field. */ +#define BUF_HEADER_SIZE (sizeof(BufHdr_)) + typedef struct buf_hdr_ BufHdr_; typedef u8 *Buf;