diff options
author | Jon Santmyer <jon@jonsantmyer.com> | 2021-12-11 18:06:41 -0500 |
---|---|---|
committer | Jon Santmyer <jon@jonsantmyer.com> | 2021-12-11 18:06:41 -0500 |
commit | 1b5cc0d201dc317935fb7585aa54e1489bee1caf (patch) | |
tree | 05901421c4a0c675bf89cc84ef027becb55c3078 /heap.h | |
parent | 0170e838d18369c10439c25720e11a79d65c4bff (diff) | |
download | diheap-1b5cc0d201dc317935fb7585aa54e1489bee1caf.tar.gz diheap-1b5cc0d201dc317935fb7585aa54e1489bee1caf.tar.bz2 diheap-1b5cc0d201dc317935fb7585aa54e1489bee1caf.zip |
add function to resize heap
Diffstat (limited to 'heap.h')
-rw-r--r-- | heap.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -133,6 +133,10 @@ struct heap * */ int heap_create(struct heap *heap, uintptr_t at, size_t len); +/* Expands the heap's allocation area. Does not support reallocations + * */ +void heap_resize(struct heap *heap, size_t newsize); + /* Allocates a block of memory atleast [size] bytes long in heap * */ void *heap_alloc(struct heap *heap, size_t size); |