kiba-engine
system.h
Go to the documentation of this file.
1 
10 #pragma once
11 
13 
18 KB_LOCAL b8 system_allocator_create(allocator *alloc, usize size);
19 
24 KB_LOCAL void system_allocator_destroy(allocator *alloc);
25 
30 KB_LOCAL void *system_allocator_allocate(allocator *alloc, usize size);
31 
36 KB_LOCAL void system_allocator_free(allocator *alloc, void *mem, usize size);
37 
42 KB_LOCAL void system_allocator_free_all(allocator *alloc);
Central header providing allocator functionality.
Central allocator structure.
Definition: allocator.h:87
KB_LOCAL void * system_allocator_allocate(allocator *alloc, usize size)
Definition: system.c:24
KB_LOCAL void system_allocator_destroy(allocator *alloc)
Definition: system.c:22
KB_LOCAL void system_allocator_free(allocator *alloc, void *mem, usize size)
Definition: system.c:29
KB_LOCAL b8 system_allocator_create(allocator *alloc, usize size)
Definition: system.c:10
KB_LOCAL void system_allocator_free_all(allocator *alloc)
Definition: system.c:35