PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
heaplib.h File Reference
#include <types.h>
#include <irx.h>
+ Include dependency graph for heaplib.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define heaplib_IMPORTS_start   DECLARE_IMPORT_TABLE(heaplib, 1, 1)
 
#define heaplib_IMPORTS_end   END_IMPORT_TABLE
 
#define I_CreateHeap   DECLARE_IMPORT(4, CreateHeap)
 
#define I_DeleteHeap   DECLARE_IMPORT(5, DeleteHeap)
 
#define I_AllocHeapMemory   DECLARE_IMPORT(6, AllocHeapMemory)
 
#define I_FreeHeapMemory   DECLARE_IMPORT(7, FreeHeapMemory)
 
#define I_HeapTotalFreeSize   DECLARE_IMPORT(8, HeapTotalFreeSize)
 
#define I_HeapPrepare   DECLARE_IMPORT(11, HeapPrepare)
 
#define I_HeapChunkSize   DECLARE_IMPORT(15, HeapChunkSize)
 

Functions

void * CreateHeap (int heapblocksize, int flag)
 
void DeleteHeap (void *heap)
 
void * AllocHeapMemory (void *heap, size_t nbytes)
 
int FreeHeapMemory (void *heap, void *ptr)
 
int HeapTotalFreeSize (void *heap)
 
void HeapPrepare (void *mem, int size)
 
int HeapChunkSize (void *chunk)
 

Detailed Description

Heap library.

Definition in file heaplib.h.

Macro Definition Documentation

◆ heaplib_IMPORTS_start

#define heaplib_IMPORTS_start   DECLARE_IMPORT_TABLE(heaplib, 1, 1)

Definition at line 35 of file heaplib.h.

◆ heaplib_IMPORTS_end

#define heaplib_IMPORTS_end   END_IMPORT_TABLE

Definition at line 36 of file heaplib.h.

◆ I_CreateHeap

#define I_CreateHeap   DECLARE_IMPORT(4, CreateHeap)

Definition at line 38 of file heaplib.h.

◆ I_DeleteHeap

#define I_DeleteHeap   DECLARE_IMPORT(5, DeleteHeap)

Definition at line 39 of file heaplib.h.

◆ I_AllocHeapMemory

#define I_AllocHeapMemory   DECLARE_IMPORT(6, AllocHeapMemory)

Definition at line 40 of file heaplib.h.

◆ I_FreeHeapMemory

#define I_FreeHeapMemory   DECLARE_IMPORT(7, FreeHeapMemory)

Definition at line 41 of file heaplib.h.

◆ I_HeapTotalFreeSize

#define I_HeapTotalFreeSize   DECLARE_IMPORT(8, HeapTotalFreeSize)

Definition at line 42 of file heaplib.h.

◆ I_HeapPrepare

#define I_HeapPrepare   DECLARE_IMPORT(11, HeapPrepare)

Definition at line 43 of file heaplib.h.

◆ I_HeapChunkSize

#define I_HeapChunkSize   DECLARE_IMPORT(15, HeapChunkSize)

Definition at line 44 of file heaplib.h.

Function Documentation

◆ CreateHeap()

void * CreateHeap ( int  heapblocksize,
int  flag 
)

Definition at line 254 of file heaplib.c.

◆ DeleteHeap()

void DeleteHeap ( void *  heap)

Definition at line 276 of file heaplib.c.

◆ AllocHeapMemory()

void * AllocHeapMemory ( void *  heap,
size_t  nbytes 
)

Definition at line 302 of file heaplib.c.

◆ FreeHeapMemory()

int FreeHeapMemory ( void *  heap,
void *  ptr 
)

Definition at line 351 of file heaplib.c.

◆ HeapTotalFreeSize()

int HeapTotalFreeSize ( void *  heap)

Definition at line 381 of file heaplib.c.

◆ HeapPrepare()

void HeapPrepare ( void *  mem,
int  size 
)

Definition at line 94 of file heaplib.c.

◆ HeapChunkSize()

int HeapChunkSize ( void *  chunk)

Definition at line 246 of file heaplib.c.