kiba-engine
Functions
system.c File Reference

System allocator implementation. More...

#include <kiba/allocators/system.h>
#include <kiba/core/memory.h>
Include dependency graph for system.c:

Go to the source code of this file.

Functions

b8 system_allocator_create (allocator *alloc, usize size)
 
void system_allocator_destroy (allocator *alloc)
 
void * system_allocator_allocate (allocator *alloc, usize size)
 
void system_allocator_free (allocator *alloc, void *mem, usize size)
 
void system_allocator_free_all (allocator *alloc)
 

Detailed Description

System allocator implementation.

Definition in file system.c.

Function Documentation

◆ system_allocator_allocate()

void* system_allocator_allocate ( allocator alloc,
usize  size 
)
See also
allocator_impl_allocate_fn

Definition at line 24 of file system.c.

Here is the call graph for this function:

◆ system_allocator_create()

b8 system_allocator_create ( allocator alloc,
usize  size 
)
See also
allocator_impl_create_fn

Definition at line 10 of file system.c.

Here is the call graph for this function:

◆ system_allocator_destroy()

void system_allocator_destroy ( allocator alloc)
See also
allocator_impl_destroy_fn

Definition at line 22 of file system.c.

◆ system_allocator_free()

void system_allocator_free ( allocator alloc,
void *  mem,
usize  size 
)
See also
allocator_impl_free_fn

Definition at line 29 of file system.c.

Here is the call graph for this function:

◆ system_allocator_free_all()

void system_allocator_free_all ( allocator alloc)
See also
allocator_impl_free_all_fn

Definition at line 35 of file system.c.