SSBM Decomp
Loading...
Searching...
No Matches
lbheap.c File Reference

Data Structures

struct  Heap
struct  lbHeap_HeapState
struct  lbHeap_HeapDesc

Functions

 ASSERT_SIZE (struct Heap, 0x1C)
 ASSERT_SIZE (struct lbHeap_HeapState, 0xB8)
static void resetHeap (LbHeapKind kind)
static void destroyHeap (LbHeapKind kind)
static void createHeap (LbHeapKind kind)
void lbHeap_800158D0 (int arg0, int arg1)
int lbHeap_800158E8 (int arg0)
void lbHeap_80015900 (void)
LbHeapStatus lbHeap_80015BB8 (int arg0)
void * lbHeap_80015BD0 (int heap_id, size_t size)
 Returns a RAM pointer for Hsd, an ARAM address for ARAM, or an HSD_AllocEntry pointer for the other heaps.
void lbHeap_80015CA8 (int arg0, void *addr)
 Takes the payload address, not the allocation record.
int lbHeap_80015D6C (u32 heap0, void(*cb)(u32), u32 heap1)
void lbHeap_80015DF8 (void)
void lbHeap_80015F3C (void)

Variables

static struct lbHeap_HeapState lbHeap_80431FA0
struct lbHeap_HeapDesc lbHeap_803BA380 [5]
 LbHeapKind_Count marks an absent predecessor or the table end.
char * lbHeap_803BA448 []

Function Documentation

◆ ASSERT_SIZE() [1/2]

ASSERT_SIZE ( struct Heap ,
0x1C  )

◆ ASSERT_SIZE() [2/2]

ASSERT_SIZE ( struct lbHeap_HeapState ,
0xB8  )

◆ resetHeap()

void resetHeap ( LbHeapKind kind)
inlinestatic

◆ destroyHeap()

void destroyHeap ( LbHeapKind kind)
inlinestatic

◆ createHeap()

void createHeap ( LbHeapKind kind)
inlinestatic

◆ lbHeap_800158D0()

void lbHeap_800158D0 ( int arg0,
int arg1 )

◆ lbHeap_800158E8()

int lbHeap_800158E8 ( int arg0)

◆ lbHeap_80015900()

void lbHeap_80015900 ( void )

◆ lbHeap_80015BB8()

LbHeapStatus lbHeap_80015BB8 ( int arg0)

◆ lbHeap_80015BD0()

void * lbHeap_80015BD0 ( int heap_id,
size_t size )

Returns a RAM pointer for Hsd, an ARAM address for ARAM, or an HSD_AllocEntry pointer for the other heaps.

◆ lbHeap_80015CA8()

void lbHeap_80015CA8 ( int arg0,
void * addr )

Takes the payload address, not the allocation record.

◆ lbHeap_80015D6C()

int lbHeap_80015D6C ( u32 heap0,
void(* cb )(u32),
u32 heap1 )

◆ lbHeap_80015DF8()

void lbHeap_80015DF8 ( void )

◆ lbHeap_80015F3C()

void lbHeap_80015F3C ( void )

Variable Documentation

◆ lbHeap_80431FA0

struct lbHeap_HeapState lbHeap_80431FA0
static

◆ lbHeap_803BA380

struct lbHeap_HeapDesc lbHeap_803BA380[5]
Initial value:
= {
{ LbHeapKind_Stay, 1, LbHeapKind_Seq, 0x4F8800 },
{ LbHeapKind_AllM, 2, LbHeapKind_Count, 0x64B400 },
{ LbHeapKind_AllA, 4, LbHeapKind_Count, 0x96C800 },
{ LbHeapKind_Count, 0, 0, 0 },
}
@ LbHeapKind_Seq
Definition lbheap.h:15
@ LbHeapKind_Count
Definition lbheap.h:19
@ LbHeapKind_Stay
Definition lbheap.h:16
@ LbHeapKind_AllA
Definition lbheap.h:18
@ LbHeapKind_AllM
Definition lbheap.h:17

LbHeapKind_Count marks an absent predecessor or the table end.

◆ lbHeap_803BA448

char* lbHeap_803BA448[]
Initial value:
= {
" Hsd", " ARAM", " Seq", " Stay", " AllM", " AllA",
}