aboutsummaryrefslogtreecommitdiff
path: root/include/std
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-01-22 19:14:06 +0100
committerdec05eba <dec05eba@protonmail.com>2020-01-22 19:14:06 +0100
commitb7f056a73ad4053eb2284c54873dfb3888dcb430 (patch)
tree6d036345c5214390781d0019b46bf446e2190478 /include/std
parent840a3c6c5aa2400ce80d8ec7bb8b1a8d6e25770b (diff)
Correctly parse and produce bytecode for example
Diffstat (limited to 'include/std')
-rw-r--r--include/std/buffer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/std/buffer.h b/include/std/buffer.h
index db6474e..b7224e9 100644
--- a/include/std/buffer.h
+++ b/include/std/buffer.h
@@ -17,6 +17,8 @@ void tsl_buffer_init(TslBuffer *self);
void tsl_buffer_deinit(TslBuffer *self);
int tsl_buffer_append(TslBuffer *self, const void *data, size_t size);
+/* The buffer has to >= @size */
+void tsl_buffer_pop(TslBuffer *self, size_t size);
void* tsl_buffer_begin(TslBuffer *self);
void* tsl_buffer_end(TslBuffer *self);