|
Foxit PDF Conversion SDK
|
System level memory manager. Application can implement their own system memory manager. More...
Public Attributes | |
| void *(* | Alloc )(struct _FXMEM_SystemMgr *pMgr, size_t size, int flags) |
| A pointer type to an allocation function. More... | |
| void *(* | AllocDebug )(struct _FXMEM_SystemMgr *pMgr, size_t size, int flags, FX_LPCSTR file, int line) |
| A pointer type to a debug-mode allocation function. More... | |
| void(* | CollectAll )(struct _FXMEM_SystemMgr *pMgr) |
| A pointer type to a memory-collection function. More... | |
| void(* | Free )(struct _FXMEM_SystemMgr *pMgr, void *pointer, int flags) |
| A pointer type to a free function. More... | |
| void *(* | Lock )(struct _FXMEM_SystemMgr *pMgr, void *handle) |
| A pointer type to a lock function. More... | |
| void(* | Purge )(struct _FXMEM_SystemMgr *pMgr) |
| A pointer type to a purge function, which can be used to purge excessive memory without touching any used memory. More... | |
| void *(* | Realloc )(struct _FXMEM_SystemMgr *pMgr, void *pointer, size_t size, int flags) |
| A pointer type to a reallocation function. More... | |
| void *(* | ReallocDebug )(struct _FXMEM_SystemMgr *pMgr, void *pointer, size_t size, int flags, FX_LPCSTR file, int line) |
| A pointer type to a debug-mode reallocation function. More... | |
| void(* | Unlock )(struct _FXMEM_SystemMgr *pMgr, void *handle) |
| A pointer type to a unlock function. More... | |
| void * | user |
| A generic typeless pointer for user data. | |
System level memory manager. Application can implement their own system memory manager.
| void*(* FXMEM_SystemMgr::Alloc) (struct _FXMEM_SystemMgr *pMgr, size_t size, int flags) |
A pointer type to an allocation function.
The function prototype is:
void* Alloc(FXMEM_SystemMgr* pMgr, size_t size, int flags);
| [in] | pMgr | A pointer to a FXMEM_SystemMgr object. |
| [in] | size | The size in bytes to allocate. |
| [in] | flags | Memory allocation attributes. |
| void*(* FXMEM_SystemMgr::AllocDebug) (struct _FXMEM_SystemMgr *pMgr, size_t size, int flags, FX_LPCSTR file, int line) |
A pointer type to a debug-mode allocation function.
The function prototype is:
void* AllocDebug(FXMEM_SystemMgr* pMgr, size_t size, int flags, FX_LPCSTR file, int line);
| [in] | pMgr | A pointer to a FXMEM_SystemMgr object. |
| [in] | size | The size in bytes to allocate. |
| [in] | flags | Memory allocation attributes. |
| [in] | file | The name of the current source file. |
| [in] | line | The line number in the current source file. |
| void(* FXMEM_SystemMgr::CollectAll) (struct _FXMEM_SystemMgr *pMgr) |
A pointer type to a memory-collection function.
The function prototype is:
void CollectAll(FXMEM_SystemMgr* pMgr);
| [in] | pMgr | A pointer to a FXMEM_SystemMgr object. |
| void(* FXMEM_SystemMgr::Free) (struct _FXMEM_SystemMgr *pMgr, void *pointer, int flags) |
A pointer type to a free function.
The function prototype is:
void Free(FXMEM_SystemMgr* pMgr, void* pointer, int flags);
| [in] | pMgr | A pointer to a FXMEM_SystemMgr object. |
| [in] | pointer | A pointer to a memory block. |
| [in] | flags | Memory allocation attributes. |
| void*(* FXMEM_SystemMgr::Lock) (struct _FXMEM_SystemMgr *pMgr, void *handle) |
A pointer type to a lock function.
The function prototype is:
void Lock(FXMEM_SystemMgr* pMgr, void* handle);
| [in] | pMgr | A pointer to a FXMEM_SystemMgr object. |
| [in] | handle | A handle to a memory block. |
| void(* FXMEM_SystemMgr::Purge) (struct _FXMEM_SystemMgr *pMgr) |
A pointer type to a purge function, which can be used to purge excessive memory without touching any used memory.
The function prototype is:
void Purge(FXMEM_SystemMgr* pMgr);
| [in] | pMgr | A pointer to a FXMEM_SystemMgr object. |
| void*(* FXMEM_SystemMgr::Realloc) (struct _FXMEM_SystemMgr *pMgr, void *pointer, size_t size, int flags) |
A pointer type to a reallocation function.
The function prototype is:
void* Realloc(FXMEM_SystemMgr* pMgr, void* pointer, size_t size, int flags);
| [in] | pMgr | A pointer to a FXMEM_SystemMgr object. |
| [in] | pointer | A pointer to a memory block. |
| [in] | size | The size in bytes to reallocate. |
| [in] | flags | Memory allocation attributes. |
| void*(* FXMEM_SystemMgr::ReallocDebug) (struct _FXMEM_SystemMgr *pMgr, void *pointer, size_t size, int flags, FX_LPCSTR file, int line) |
A pointer type to a debug-mode reallocation function.
The function prototype is:
void ReallocDebug(FXMEM_SystemMgr* pMgr, void* pointer, size_t size, int flags, FX_LPCSTR file, int line);
| [in] | pMgr | A pointer to a FXMEM_SystemMgr object. |
| [in] | pointer | A pointer to a memory block. |
| [in] | size | The size in bytes to reallocate. |
| [in] | flags | Memory allocation attributes. |
| [in] | file | The name of the current source file. |
| [in] | line | The line number in the current source file. |
| void(* FXMEM_SystemMgr::Unlock) (struct _FXMEM_SystemMgr *pMgr, void *handle) |
A pointer type to a unlock function.
The function prototype is:
void Unlock(FXMEM_SystemMgr* pMgr, void* handle);
| [in] | pMgr | A pointer to a FXMEM_SystemMgr object. |
| [in] | handle | A handle to a memory block. |