Salad  1.0.15
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions
memory.c File Reference
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "salad/config.h"
#include "salad/memory.h"
#include "salad/types.h"

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 grow_amount)
 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...