tern.experimental.heap_allocator

Fast slab-entry based memory allocator with simple defragmentation.

Members

Static functions

calloc
void* calloc(size_t size)

Allocates an entry of size and clears the entry.

deallocate
bool deallocate(void* ptr)
Undocumented in source. Be warned that the author may not have intended to support it.
free
bool free(void* ptr)

Frees ptr, self explanatory.

malloc
void* malloc(size_t size)

Allocates an entry of size

realloc
void realloc(void* ptr, size_t size)

Reallocates ptr with size Tries to avoid actually doing a new allocation if possible.

wake
void wake(void* ptr)

Zeroes the entry pointed to by ptr.

Structs

Entry
struct Entry
Undocumented in source.

Meta