Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
allocator.h
Go to the documentation of this file.
1#ifndef _REVOLUTION_MEM_ALLOCATOR_H_
2#define _REVOLUTION_MEM_ALLOCATOR_H_
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
9#include <revolution/types.h>
10
12typedef void* (*MEMFuncAllocatorAlloc)(MEMAllocator* pAllocator, u32 size);
13typedef void (*MEMFuncAllocatorFree)(MEMAllocator* pAllocator, void* memBlock);
15
20
27
31void MEMInitAllocatorForFrmHeap(MEMAllocator* allocator, struct MEMiHeapHead* heap, s32 align);
32
33#ifdef __cplusplus
34}
35#endif
36
37#endif // _REVOLUTION_MEM_ALLOCATOR_H_
void * MEMAllocFromAllocator(MEMAllocator *, u32)
Definition mem_allocator.c:12
void(* MEMFuncAllocatorFree)(MEMAllocator *pAllocator, void *memBlock)
Definition allocator.h:13
void MEMInitAllocatorForExpHeap(MEMAllocator *, MEMHeapHandle, int)
Definition mem_allocator.c:20
void MEMFreeToAllocator(MEMAllocator *, void *)
Definition mem_allocator.c:16
void MEMInitAllocatorForFrmHeap(MEMAllocator *allocator, struct MEMiHeapHead *heap, s32 align)
void *(* MEMFuncAllocatorAlloc)(MEMAllocator *pAllocator, u32 size)
Definition allocator.h:12
unsigned int size
Definition __os.h:106
unsigned long u32
Definition types.h:12
signed long s32
Definition types.h:11
Definition allocator.h:16
MEMFuncAllocatorAlloc pfAlloc
Definition allocator.h:17
MEMFuncAllocatorFree pfFree
Definition allocator.h:18
Definition allocator.h:21
u32 heapParam1
Definition allocator.h:24
u32 heapParam2
Definition allocator.h:25
const MEMAllocatorFunc * pFunc
Definition allocator.h:22
void * pHeap
Definition allocator.h:23
Definition heapCommon.h:14