diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-03-07 22:19:57 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-25 14:36:46 +0200 |
commit | 27718f093689dbd3decd7021eaa97327f578c8f3 (patch) | |
tree | c41ab4bb5727b22be35c1237279cfdfec0a27561 /include/std/buffer.h | |
parent | 81b6004928015ced29b0b949e35753977aa17606 (diff) |
Add hash map
Diffstat (limited to 'include/std/buffer.h')
-rw-r--r-- | include/std/buffer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/std/buffer.h b/include/std/buffer.h index a60def9..688f18a 100644 --- a/include/std/buffer.h +++ b/include/std/buffer.h @@ -16,7 +16,8 @@ typedef struct { struct ScopedAllocator; CHECK_RESULT int buffer_init(Buffer *self, struct ScopedAllocator *allocator); -CHECK_RESULT int buffer_append(Buffer *self, void *data, usize size); +/* @data can be NULL */ +CHECK_RESULT int buffer_append(Buffer *self, const void *data, usize size); void* buffer_get(Buffer *self, usize index, usize type_size); CHECK_RESULT int buffer_pop(Buffer *self, void *data, usize size); void* buffer_start(Buffer *self); |