Memory allocation and deallocation
Functions
-
void * memalloc(usize size, usize alignment=0)
Allocates heap memory.
-
void memfree(void *ptr, usize alignment=0)
Frees heap memory.
-
void * memrealloc(void *ptr, usize size, usize alignment=0)
Reallocates heap memory.
-
usize memsize(void *ptr, usize alignment=0)
Gets the allocated size of one memory block.
-
_Ty * memnew(_Args &&... args)
Allocates heap memory for one object and constructs the object.
-
Destructs one object and frees its memory.