KFbxMemoryAllocator Class Reference

#include <kfbxmemoryallocator.h>

Inherited by KFbxDefaultMemoryAllocator.

Inheritance diagram for KFbxMemoryAllocator:

Inheritance graph
List of all members.

Detailed Description

This class provides services for memory management.

The FBX SDK Manager uses an object of type KFbxMemoryAllocator to allocate and free memory. Implement your own class if your application requires custom memory management.

Definition at line 58 of file kfbxmemoryallocator.h.

Public Member Functions

 KFbxMemoryAllocator (void *(*pMallocHandler)(size_t), void *(*pCallocHandler)(size_t, size_t), void *(*pReallocHandler)(void *, size_t), void(*pFreeHandler)(void *))
 Constructor.


Constructor & Destructor Documentation

KFbxMemoryAllocator ( void *(*)(size_t)  pMallocHandler,
void *(*)(size_t, size_t)  pCallocHandler,
void *(*)(void *, size_t)  pReallocHandler,
void(*)(void *)  pFreeHandler 
) [inline]

Constructor.

Parameters:
pMallocHandler Pointer to a function implementing malloc. This function allocates memory blocks.
pCallocHandler Pointer to a function implementing calloc. This function allocates an array in memory with elements initialized to 0.
pReallocHandler Pointer to a function implementing realloc. This function reallocate memory blocks.
pFreeHandler Pointer to a function implementing free. This function deallocates memory blocks.

Definition at line 67 of file kfbxmemoryallocator.h.