SSBM Decomp
Toggle main menu visibility
Loading...
Searching...
No Matches
OSAlloc.h
Go to the documentation of this file.
1
#ifndef _DOLPHIN_OSALLOC_H_
2
#define _DOLPHIN_OSALLOC_H_
3
4
#include <
dolphin/types.h
>
5
6
typedef
int
OSHeapHandle
;
7
8
extern
volatile
OSHeapHandle
__OSCurrHeap
;
9
10
void
*
OSAllocFromHeap
(
int
heap,
unsigned
long
size);
11
void
*
OSAllocFixed
(
void
* rstart,
void
* rend);
12
void
OSFreeToHeap
(
int
heap,
void
* ptr);
13
int
OSSetCurrentHeap
(
int
heap);
14
void
*
OSInitAlloc
(
void
* arenaStart,
void
* arenaEnd,
int
maxHeaps);
15
int
OSCreateHeap
(
void
*
start
,
void
*
end
);
16
void
OSDestroyHeap
(
int
heap);
17
void
OSAddToHeap
(
int
heap,
void
*
start
,
void
*
end
);
18
long
OSCheckHeap
(
int
heap);
19
unsigned
long
OSReferentSize
(
void
* ptr);
20
void
OSDumpHeap
(
int
heap);
21
void
OSVisitAllocated
(
void
(* visitor)(
void
*,
unsigned
long
));
22
23
#define OSAlloc(size) OSAllocFromHeap(__OSCurrHeap, (size))
24
#define OSFree(ptr) OSFreeToHeap(__OSCurrHeap, (ptr))
25
26
#endif
__OSCurrHeap
volatile OSHeapHandle __OSCurrHeap
OSAddToHeap
void OSAddToHeap(int heap, void *start, void *end)
OSAllocFixed
void * OSAllocFixed(void *rstart, void *rend)
OSAllocFromHeap
void * OSAllocFromHeap(int heap, unsigned long size)
OSDestroyHeap
void OSDestroyHeap(int heap)
OSCheckHeap
long OSCheckHeap(int heap)
OSInitAlloc
void * OSInitAlloc(void *arenaStart, void *arenaEnd, int maxHeaps)
OSDumpHeap
void OSDumpHeap(int heap)
OSHeapHandle
int OSHeapHandle
Definition
OSAlloc.h:6
OSVisitAllocated
void OSVisitAllocated(void(*visitor)(void *, unsigned long))
OSReferentSize
unsigned long OSReferentSize(void *ptr)
OSFreeToHeap
void OSFreeToHeap(int heap, void *ptr)
OSSetCurrentHeap
int OSSetCurrentHeap(int heap)
OSCreateHeap
int OSCreateHeap(void *start, void *end)
types.h
end
static bool end(Vec3 *a, Vec3 *b, float unk_sum)
Definition
lbcollision.c:430
start
@ start
Definition
strtoul.c:10
extern
dolphin
include
dolphin
os
OSAlloc.h
Generated by
1.17.0