kiba-engine
|
Interface to access platform specific memory functionality. More...
#include <kiba/defines.h>
Go to the source code of this file.
Functions | |
void * | platform_memory_allocate (usize size) |
Allocate memory. More... | |
void | platform_memory_free (void *mem, usize size) |
Free memory. More... | |
void * | platform_memory_set (void *mem, u8 byte, usize size) |
Set memory block to a specific byte value. More... | |
void * | platform_memory_copy (void *dst, const void *src, usize size) |
Copy memory. More... | |
Interface to access platform specific memory functionality.
Definition in file memory.h.
void* platform_memory_allocate | ( | usize | size | ) |
void* platform_memory_copy | ( | void * | dst, |
const void * | src, | ||
usize | size | ||
) |
Copy memory.
Uses platform specific implementation to copy memory.
dst | pointer to beginning of the destination memory block |
src | pointer to beginning of the source memory block |
size | number of bytes to be copied |
void platform_memory_free | ( | void * | mem, |
usize | size | ||
) |
void* platform_memory_set | ( | void * | mem, |
u8 | byte, | ||
usize | size | ||
) |
Set memory block to a specific byte value.
Uses platform specific implementation to set memory.
mem | pointer to beginning of memory block |
byte | the value to set every byte to |
size | number of bytes to be set |