Foxit allocator interface. More...
Public Attributes | |
void *(* | m_Alloc )(struct _IFX_Allocator *pAllocator, size_t size) |
A pointer type to an allocation function. More... | |
void *(* | m_AllocDebug )(struct _IFX_Allocator *pAllocator, size_t size, FX_LPCSTR file, int line) |
A pointer type to a debug-mode allocation function. More... | |
void(* | m_Free )(struct _IFX_Allocator *pAllocator, void *p) |
A pointer type to a free function. More... | |
void *(* | m_Realloc )(struct _IFX_Allocator *pAllocator, void *p, size_t size) |
A pointer type to a re-allocation function. More... | |
void *(* | m_ReallocDebug )(struct _IFX_Allocator *pAllocator, void *p, size_t size, FX_LPCSTR file, int line) |
A pointer type to a debug-mode re-allocation function. More... | |
Foxit allocator interface.
void*(* IFX_Allocator::m_Alloc) (struct _IFX_Allocator *pAllocator, size_t size) |
A pointer type to an allocation function.
The function prototype is:
void* Alloc(IFX_Allocator* pAllocator, size_t size);
[in] | pAllocator | A pointer to a IFX_Allocator object. |
[in] | size | The size in bytes to allocate. |
void*(* IFX_Allocator::m_AllocDebug) (struct _IFX_Allocator *pAllocator, size_t size, FX_LPCSTR file, int line) |
A pointer type to a debug-mode allocation function.
The function prototype is:
void* AllocDebug(IFX_Allocator* pAllocator, size_t size, FX_LPCSTR filename, int line);
[in] | pAllocator | A pointer to a IFX_Allocator object. |
[in] | size | The size in bytes to allocate. |
[in] | file | The name of the current source file. |
[in] | line | The line number in the current source file. |
void(* IFX_Allocator::m_Free) (struct _IFX_Allocator *pAllocator, void *p) |
A pointer type to a free function.
The function prototype is:
void free(IFX_Allocator* pAllocator, void* p);
[in] | pAllocator | A pointer to a IFX_Allocator object. |
[in] | p | Address of a memory block. |
void*(* IFX_Allocator::m_Realloc) (struct _IFX_Allocator *pAllocator, void *p, size_t size) |
A pointer type to a re-allocation function.
The function prototype is:
void* Realloc(IFX_Allocator* pAllocator, void* p, size_t size);
[in] | pAllocator | A pointer to a IFX_Allocator object. |
[in] | p | Pointer to reallocate. |
[in] | size | The new size in bytes to reallocate. |
void*(* IFX_Allocator::m_ReallocDebug) (struct _IFX_Allocator *pAllocator, void *p, size_t size, FX_LPCSTR file, int line) |
A pointer type to a debug-mode re-allocation function.
The function prototype is:
void* ReallocDebug(IFX_Allocator* pAllocator, void* p, size_t size, FX_LPCSTR filename, int line);
[in] | pAllocator | A pointer to a IFX_Allocator object. |
[in] | p | Pointer to reallocate. |
[in] | size | The new size in bytes to reallocate. |
[in] | file | The name of the current source file. |
[in] | line | The line number in the current source file. |