mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-24 16:22:41 +02:00
22 lines
671 B
C
22 lines
671 B
C
#ifndef _IN_LIB_MEMORY_H
|
|
#define _IN_LIB_MEMORY_H
|
|
#include <ultra64.h>
|
|
#include "data.h"
|
|
#include "types.h"
|
|
|
|
void func000121e0(void);
|
|
void memInit(u8 *heapstart, u32 heaplen);
|
|
u32 memGetPool4Available(void);
|
|
void *memGetNextPool4Allocation(void);
|
|
void *memAllocFromBank(struct memorypool *pool, u32 size, u8 poolnum);
|
|
void *malloc(u32 len, u8 pool);
|
|
s32 memReallocate(void *allocation, s32 newsize, u8 poolnum);
|
|
u32 memGetFree(u8 poolnum, u32 bank);
|
|
u32 memGetSize(u8 poolnum, u32 bank);
|
|
void memResetPool(u8 pool);
|
|
void memDisablePool(u8 pool);
|
|
void *memAllocFromBankRight(struct memorypool *pool, u32 size, u8 poolnum);
|
|
void *mallocFromRight(u32 len, u8 pool);
|
|
|
|
#endif
|