kiba-engine
|
Function signatures for system allocator implementation. More...
#include <kiba/allocators/allocator.h>
Go to the source code of this file.
Functions | |
KB_LOCAL b8 | system_allocator_create (allocator *alloc, usize size) |
KB_LOCAL void | system_allocator_destroy (allocator *alloc) |
KB_LOCAL void * | system_allocator_allocate (allocator *alloc, usize size) |
KB_LOCAL void | system_allocator_free (allocator *alloc, void *mem, usize size) |
KB_LOCAL void | system_allocator_free_all (allocator *alloc) |
Function signatures for system allocator implementation.
Only used for unit tests to avoid issues related to a specific allocator implementation. All functionality will simply forward to the stdlib.
Definition in file system.h.
KB_LOCAL void* system_allocator_allocate | ( | allocator * | alloc, |
usize | size | ||
) |
Definition at line 24 of file system.c.
KB_LOCAL b8 system_allocator_create | ( | allocator * | alloc, |
usize | size | ||
) |
Definition at line 10 of file system.c.
KB_LOCAL void system_allocator_destroy | ( | allocator * | alloc | ) |
KB_LOCAL void system_allocator_free | ( | allocator * | alloc, |
void * | mem, | ||
usize | size | ||
) |
Definition at line 29 of file system.c.
KB_LOCAL void system_allocator_free_all | ( | allocator * | alloc | ) |