sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
heaplib.h File Reference
#include <types.h>
#include <irx.h>

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_end

#define heaplib_IMPORTS_end   END_IMPORT_TABLE

Definition at line 37 of file heaplib.h.

◆ heaplib_IMPORTS_start

#define heaplib_IMPORTS_start   DECLARE_IMPORT_TABLE(heaplib, 1, 1)

Definition at line 36 of file heaplib.h.

◆ I_AllocHeapMemory

#define I_AllocHeapMemory   DECLARE_IMPORT(6, AllocHeapMemory)

Definition at line 41 of file heaplib.h.

◆ I_CreateHeap

#define I_CreateHeap   DECLARE_IMPORT(4, CreateHeap)

Definition at line 39 of file heaplib.h.

◆ I_DeleteHeap

#define I_DeleteHeap   DECLARE_IMPORT(5, DeleteHeap)

Definition at line 40 of file heaplib.h.

◆ I_FreeHeapMemory

#define I_FreeHeapMemory   DECLARE_IMPORT(7, FreeHeapMemory)

Definition at line 42 of file heaplib.h.

◆ I_HeapChunkSize

#define I_HeapChunkSize   DECLARE_IMPORT(15, HeapChunkSize)

Definition at line 45 of file heaplib.h.

◆ I_HeapPrepare

#define I_HeapPrepare   DECLARE_IMPORT(11, HeapPrepare)

Definition at line 44 of file heaplib.h.

◆ I_HeapTotalFreeSize

#define I_HeapTotalFreeSize   DECLARE_IMPORT(8, HeapTotalFreeSize)

Definition at line 43 of file heaplib.h.

Function Documentation

◆ AllocHeapMemory()

void * AllocHeapMemory ( void * heap,
size_t nbytes )
extern

Definition at line 302 of file heaplib.c.

◆ CreateHeap()

void * CreateHeap ( int heapblocksize,
int flag )
extern

Definition at line 254 of file heaplib.c.

◆ DeleteHeap()

void DeleteHeap ( void * heap)
extern

Definition at line 276 of file heaplib.c.

◆ FreeHeapMemory()

int FreeHeapMemory ( void * heap,
void * ptr )
extern

Definition at line 351 of file heaplib.c.

◆ HeapChunkSize()

int HeapChunkSize ( void * chunk)
extern

Definition at line 246 of file heaplib.c.

◆ HeapPrepare()

void HeapPrepare ( void * mem,
int size )
extern

Definition at line 94 of file heaplib.c.

◆ HeapTotalFreeSize()

int HeapTotalFreeSize ( void * heap)
extern

Definition at line 381 of file heaplib.c.