Functions
tMempool

Memory pool for the allocation of LEAF objects. More...

Functions

void tMempool_init (tMempool *const pool, char *memory, size_t size, LEAF *const leaf)
 Initialize a tMempool for a given memory location and size to the default mempool of a LEAF instance. More...
 
void tMempool_free (tMempool *const pool)
 Free a tMempool from its mempool. More...
 
void tMempool_initToPool (tMempool *const mp, char *memory, size_t size, tMempool *const mem)
 Initialize a tMempool for a given memory location and size to a specified mempool. More...
 

Detailed Description

Memory pool for the allocation of LEAF objects.

Function Documentation

◆ tMempool_init()

void tMempool_init ( tMempool *const  pool,
char *  memory,
size_t  size,
LEAF *const  leaf 
)

Initialize a tMempool for a given memory location and size to the default mempool of a LEAF instance.

Parameters
poolA pointer to the tMempool to initialize.
memoryA pointer to the chunk of memory to be used as a mempool.
sizeThe size of the chunk of memory to be used as a mempool.
leafA pointer to the leaf instance.

◆ tMempool_free()

void tMempool_free ( tMempool *const  pool)

Free a tMempool from its mempool.

Parameters
poolA pointer to the tMempool to free.

◆ tMempool_initToPool()

void tMempool_initToPool ( tMempool *const  mp,
char *  memory,
size_t  size,
tMempool *const  mem 
)

Initialize a tMempool for a given memory location and size to a specified mempool.

Parameters
poolA pointer to the tMempool to initialize.
memoryA pointer to the chunk of memory to be used as a mempool.
sizeThe size of the chuck of memory to be used as a mempool.
poolToA pointer to the tMempool to which this tMempool should be initialized.