Structure for memory management. More...
#include <fs_base_r.h>
Public Attributes | |
| FS_LPVOID | clientData |
| User-defined data. More... | |
| FS_LPVOID(* | Alloc )(FS_LPVOID clientData, FS_DWORD size) |
| A callback function to allocate a memory block. More... | |
| FS_LPVOID(* | Realloc )(FS_LPVOID clientData, FS_LPVOID ptr, FS_DWORD newSize) |
| A callback function to reallocate a memory block. More... | |
| void(* | Free )(FS_LPVOID clientData, FS_LPVOID ptr) |
| A callback function to free a memory block. More... | |
Structure for memory management.
| FS_LPVOID(* FSCRT_MEMMGRHANDLER::Alloc) (FS_LPVOID clientData, FS_DWORD size) |
A callback function to allocate a memory block.
| [in] | clientData | Pointer to user-defined data. |
| [in] | size | The number of bytes for memory block. It can be 0. |
| FS_LPVOID FSCRT_MEMMGRHANDLER::clientData |
User-defined data.
| void(* FSCRT_MEMMGRHANDLER::Free) (FS_LPVOID clientData, FS_LPVOID ptr) |
A callback function to free a memory block.
| [in] | clientData | Pointer to user-defined data. |
| [in] | ptr | Pointer to an existing memory block to be freed. |
| FS_LPVOID(* FSCRT_MEMMGRHANDLER::Realloc) (FS_LPVOID clientData, FS_LPVOID ptr, FS_DWORD newSize) |
A callback function to reallocate a memory block.
| [in] | clientData | Pointer to user-defined data. |
| [in] | ptr | Pointer to an existing memory block, or NULL. |
| [in] | newSize | New size of a memory block, in bytes. It can be 0. |