summaryrefslogtreecommitdiffstats
path: root/buf.c
diff options
context:
space:
mode:
Diffstat (limited to 'buf.c')
-rw-r--r--buf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/buf.c b/buf.c
index 58cd4177..661514be 100644
--- a/buf.c
+++ b/buf.c
@@ -204,6 +204,12 @@ mem_t *buf_get(val buf, val self)
return b->data;
}
+mem_t **buf_addr_of(val buf, val self)
+{
+ struct buf *b = buf_handle(buf, self);
+ return &b->data;
+}
+
void buf_fill(val buf, mem_t *src, val self)
{
struct buf *b = buf_handle(buf, self);