|
VAT
3.0
Video Analysis Tool
|
Memory allocation (implementation). More...
Functions | |
| void | GA_set_alloc_funcs (GAAllocFunc allocFunc, GAFreeFunc freeFunc) |
| char * | GA_alloc (size_t numElem, int eltSize) |
| void | GA_free (char *memLoc) |
Variables | |
| GAAllocFunc | GA_ALLOC_FUNC = (GAAllocFunc)calloc |
| GAFreeFunc | GA_FREE_FUNC = (GAFreeFunc)free |
Memory allocation (implementation).
| char* GA_alloc | ( | size_t | numElem, |
| int | eltSize | ||
| ) |
Allocate memory.
Allocate memory using the currently set allocation function.
| numElem | Number of elements to allocate. |
| eltSize | Element size. |
| void GA_free | ( | char * | memLoc | ) |
Free memory.
Free memory using the currently set freeing function.
| memLoc | Memory location to be freed. |
| void GA_set_alloc_funcs | ( | GAAllocFunc | allocFunc, |
| GAFreeFunc | freeFunc | ||
| ) |
Set allocation functions.
Set the memory allocation functions to be used.
| allocFunc | Allocation function. |
| freeFunc | Freeing function. |
| GAAllocFunc GA_ALLOC_FUNC = (GAAllocFunc)calloc |
Global allocation function.
| GAFreeFunc GA_FREE_FUNC = (GAFreeFunc)free |
Global freeing function.
1.8.11