kiba-engine
memory.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include <kiba/defines.h>
9 
19 void *platform_memory_allocate(usize size);
20 
30 void platform_memory_free(void *mem, usize size);
31 
43 void *platform_memory_set(void *mem, u8 byte, usize size);
44 
56 void *platform_memory_copy(void *dst, const void *src, usize size);
Global typedefs and macros.
void * platform_memory_set(void *mem, u8 byte, usize size)
Set memory block to a specific byte value.
Definition: memory.c:18
void * platform_memory_allocate(usize size)
Allocate memory.
Definition: memory.c:11
void platform_memory_free(void *mem, usize size)
Free memory.
Definition: memory.c:13
void * platform_memory_copy(void *dst, const void *src, usize size)
Copy memory.
Definition: memory.c:20