Salad  1.0.15
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Macros | Functions
memory.h File Reference
#include "salad/types.h"

Go to the source code of this file.

Macros

#define POOL_GROW_AMOUNT   16
 

Functions

SLD_SSINT sld_memory_pool_init (SLD_USINT initial_size)
 Initialize a memory pool with the specified size. More...
 
SLD_BOOL sld_memory_pool_initialized ()
 Checks whether or not the memory pool is initialized. More...
 
SLD_ULINT sld_memory_pool_size ()
 Returns the size of the memory pool. More...
 
SLD_SSINT sld_memory_pool_resize (SLD_ULINT new_size)
 Resizes the memory pool to the specified size. More...
 
SLD_ULINT sld_memory_pool_add (void *ptr)
 Adds an object to the memory pool. More...
 
SLD_ULINT sld_memory_pool_objects ()
 Returns the total number of objects in the memory pool. More...
 
SLD_ULINT sld_memory_pool_free ()
 Frees any memory allocated for objects stored in the memory pool. More...
 
void sld_memory_pool_nuke ()
 Frees any memory allocated for the initialized memory pool. More...