42 void STB_HeapInitialise(
void);
54 void* STB_GetMemoryPGW(U32BIT bytes,
char *filename,
int linenum);
55 void STB_FreeMemoryPGW(
void *addr,
char *filename,
int linenum);
56 void* STB_ResizeMemoryPGW(
void *ptr, U32BIT size,
char *filename,
int lineno);
58 void* STB_AppGetMemoryPGW(U32BIT bytes,
char *filename,
int linenum);
59 void STB_AppFreeMemoryPGW(
void *addr,
char *filename,
int linenum);
60 void* STB_AppResizeMemoryPGW(
void *ptr, U32BIT size,
char *filename,
int lineno);
62 void STB_MemoryDumpPGW(BOOLEAN full);
64 #define STB_GetMemory(a) STB_GetMemoryPGW(a, __FILE__, __LINE__) 65 #define STB_FreeMemory(a) STB_FreeMemoryPGW(a, __FILE__, __LINE__) 66 #define STB_ResizeMemory(a, b) STB_ResizeMemoryPGW(a, b, __FILE__, __LINE__) 68 #define STB_AppGetMemory(a) STB_AppGetMemoryPGW(a, __FILE__, __LINE__) 69 #define STB_AppFreeMemory(a) STB_AppFreeMemoryPGW(a, __FILE__, __LINE__) 70 #define STB_AppResizeMemory(a, b) STB_AppResizeMemoryPGW(a, b, __FILE__, __LINE__) 72 void STB_AppRegisterCacheFreeFunction(BOOLEAN (*callback_function)(
void));
74 void STB_GetHeapStats(U32BIT *total_app, U32BIT *max_app, U32BIT *num_app,
75 U32BIT *total_mem, U32BIT *max_mem, U32BIT *num_mem);
void * STB_GetMemory(U32BIT bytes)
Attempts to allocate memory from the heap.
Definition: stbheap.c:221
void * STB_AppGetMemory(U32BIT bytes)
Attempts to allocate memory from the application heap.
Definition: stbheap.c:651
void * STB_ResizeMemory(void *ptr, U32BIT new_num_bytes)
Re-allocates a given memory area to the new size, ensuring data contained within the original memory ...
Definition: stbheap.c:550
void * STB_AppResizeMemory(void *ptr, U32BIT new_num_bytes)
Re-allocates a given memory area to the new size, ensuring data contained within the original memory ...
Definition: stbheap.c:891
void STB_FreeMemory(void *addr)
Releases previously allocated heap memory.
Definition: stbheap.c:336
System Wide Global Technical Data Type Definitions.
void STB_AppFreeMemory(void *addr)
Releases previously allocated application heap memory.
Definition: stbheap.c:781