Lines Matching refs:POOL
4 * drawElements Memory Pool Library
23 * \brief Memory pool management.
29 /** Enable support for failure-simulating pool allocations. */
35 /** Enable support for memory tracking of pools (will collect the maximum memory consumption to root pool). */
47 DE_POOL_DEFAULT_ALLOC_ALIGNMENT = DE_PTR_SIZE /*!< Default alignment for pool allocations (in bytes). */
50 /** Macro for allocating a new struct from a pool (leaves it uninitialized!). */
51 #define DE_POOL_NEW(POOL, TYPE) ((TYPE*)deMemPool_alloc(POOL, sizeof(TYPE)))
67 void deMemPool_destroy (deMemPool* pool);
68 int deMemPool_getNumChildren (const deMemPool* pool);
69 int deMemPool_getNumAllocatedBytes (const deMemPool* pool, deBool recurse);
70 int deMemPool_getCapacity (const deMemPool* pool, deBool recurse);
72 void* deMemPool_alloc (deMemPool* pool, size_t numBytes);
73 void* deMemPool_alignedAlloc (deMemPool* pool, size_t numBytes, deUint32 alignBytes);
74 void* deMemPool_memDup (deMemPool* pool, const void* ptr, size_t numBytes);
75 char* deMemPool_strDup (deMemPool* pool, const char* str);
76 char* deMemPool_strnDup (deMemPool* pool, const char* str, int maxLength);
79 int deMemPool_getMaxNumAllocatedBytes (const deMemPool* pool);
80 int deMemPool_getMaxCapacity (const deMemPool* pool);