Specifies custom memory-allocation functions. More...
Typedefs | |
typedef A3DPtr(* | A3DCallbackMemoryAlloc )(size_t) |
typedef A3DVoid(* | A3DCallbackMemoryFree )(A3DPtr) |
Functions | |
A3DStatus | A3DDllSetCallbacksMemory (A3DCallbackMemoryAlloc, A3DCallbackMemoryFree) |
Specifies custom memory-allocation functions This function specifies callback functions the A3DLIBS uses for memory allocation and deallocation. More... | |
Specifies custom memory-allocation functions.
This section describes the function and types that enable you to specify custom memory-allocation functions that the A3DLIBS uses in place of the standard malloc
and free
functions.
typedef A3DPtr(* A3DCallbackMemoryAlloc)(size_t) |
A callback function the A3DLIBS invokes to allocate memory.
A callback function the A3DLIBS invokes to free memory.
A3DStatus A3DDllSetCallbacksMemory | ( | A3DCallbackMemoryAlloc | , |
A3DCallbackMemoryFree | |||
) |
Specifies custom memory-allocation functions This function specifies callback functions the A3DLIBS uses for memory allocation and deallocation.
If this function is not called, the standard malloc
and free
functions are used for memory allocation and deallocation.