coastline 0.0.4
Loading...
Searching...
No Matches
heap.h
Go to the documentation of this file.
1#ifndef COASTLINE_HEAP_H
2#define COASTLINE_HEAP_H
3
9
10#include <PR/ultratypes.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
26extern u8 *g_pHeapCurrent;
27
38void ResetHeap(void);
39
50
51#ifdef ENABLE_PATCHES
55u32 GetHeapAvailable(void);
56#endif
57
68
81
91
101
102#ifdef __cplusplus
103}
104#endif
105
106#endif /* COASTLINE_HEAP_H */
u8 * GetHeapCurrentAddress(void)
Return the next free byte of the heap, to free what follows it later.
void * AllocHeapAligned(u32 size)
Allocate memory aligned to 8 bytes.
void ClearFramebuffersForWideMode(void)
Blank the display and clear the frame buffers in the wide display mode.
void ResetHeap(void)
Empty the heap.
void SetHeapCurrentAddress(u8 *address)
Free everything after an address GetHeapCurrentAddress() returned.
void ClearFramebuffersForNormalMode(void)
Blank the display and clear the frame buffers in the normal display mode.
u8 * g_pHeapCurrent
The next free byte of the interface heap.
Integer and floating-point types of libultra.
unsigned int u32
Definition ultratypes.h:20
unsigned char u8
Definition ultratypes.h:18