Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
OSAlloc.h File Reference

Go to the source code of this file.

Typedefs

typedef int OSHeapHandle
 

Functions

void * OSAllocFromHeap (int heap, u32 size)
 
void * OSAllocFixed (void *rstart, void *rend)
 
void OSFreeToHeap (int heap, void *ptr)
 
int OSSetCurrentHeap (int heap)
 
void * OSInitAlloc (void *arenaStart, void *arenaEnd, int maxHeaps)
 
int OSCreateHeap (void *start, void *end)
 
void OSDestroyHeap (int heap)
 
void OSAddToHeap (int heap, void *start, void *end)
 
s32 OSCheckHeap (int heap)
 
u32 OSReferentSize (void *ptr)
 
void OSDumpHeap (int heap)
 
void OSVisitAllocated (void(*visitor)(void *, u32))
 

Variables

volatile OSHeapHandle __OSCurrHeap
 

Typedef Documentation

◆ OSHeapHandle

typedef int OSHeapHandle

Function Documentation

◆ OSAddToHeap()

void OSAddToHeap ( int heap,
void * start,
void * end )

◆ OSAllocFixed()

void * OSAllocFixed ( void * rstart,
void * rend )

◆ OSAllocFromHeap()

void * OSAllocFromHeap ( int heap,
u32 size )

◆ OSCheckHeap()

s32 OSCheckHeap ( int heap)

◆ OSCreateHeap()

int OSCreateHeap ( void * start,
void * end )

◆ OSDestroyHeap()

void OSDestroyHeap ( int heap)

◆ OSDumpHeap()

void OSDumpHeap ( int heap)

◆ OSFreeToHeap()

void OSFreeToHeap ( int heap,
void * ptr )

◆ OSInitAlloc()

void * OSInitAlloc ( void * arenaStart,
void * arenaEnd,
int maxHeaps )

◆ OSReferentSize()

u32 OSReferentSize ( void * ptr)

◆ OSSetCurrentHeap()

int OSSetCurrentHeap ( int heap)

◆ OSVisitAllocated()

void OSVisitAllocated ( void(* visitor )(void *, u32))

Variable Documentation

◆ __OSCurrHeap

volatile OSHeapHandle __OSCurrHeap
extern