diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-01-22 19:14:06 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-01-22 19:14:06 +0100 |
commit | b7f056a73ad4053eb2284c54873dfb3888dcb430 (patch) | |
tree | 6d036345c5214390781d0019b46bf446e2190478 /include/std | |
parent | 840a3c6c5aa2400ce80d8ec7bb8b1a8d6e25770b (diff) |
Correctly parse and produce bytecode for example
Diffstat (limited to 'include/std')
-rw-r--r-- | include/std/buffer.h | 2 |
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); |