2ship2harkinian/mm/include/system_malloc.h
2024-01-05 18:00:59 -05:00

21 lines
602 B
C

#ifndef SYSTEM_MALLOC_H
#define SYSTEM_MALLOC_H
#include "PR/ultratypes.h"
#include "os_malloc.h"
void* SystemArena_Malloc(size_t size);
void* SystemArena_MallocR(size_t size);
void* SystemArena_Realloc(void* oldPtr, size_t newSize);
void SystemArena_Free(void* ptr);
void* SystemArena_Calloc(u32 elements, size_t size);
void SystemArena_GetSizes(size_t* maxFreeBlock, size_t* bytesFree, size_t* bytesAllocated);
u32 SystemArena_CheckArena(void);
void SystemArena_Init(void* start, size_t size);
void SystemArena_Cleanup(void);
u8 SystemArena_IsInitialized(void);
extern Arena gSystemArena;
#endif