|
libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
|
#include <gimbal_iallocator.h>


Data Fields | ||
| GblInterface | base | |
| GBL_RESULT(* | pFnAlloc )(GblIAllocator *pSelf, const GblStackFrame *pFrame, size_t size, size_t align, const char *pDbgStr, void **ppData) | |
| GBL_RESULT(* | pFnRealloc )(GblIAllocator *pSelf, const GblStackFrame *pFrame, void *pData, size_t newSize, size_t newAlign, void **ppNewData) | |
| GBL_RESULT(* | pFnFree )(GblIAllocator *pSelf, const GblStackFrame *pFrame, void *pData) | |
| GBL_RESULT(* | pFnParent )(const GblIAllocator *pSelf, GblIAllocator **ppParent) | |
Data Fields inherited from GblInterface | ||
| GblClass | base | |
| size_t | outerClassOffset_ | |
Data Fields inherited from GblClass | ||
| struct { | ||
| uintptr_t metaClassInfo | ||
| } | private_ | |
GblClass VTable structure for GblIAllocator.
GblIAllocatorClass provides polymorphic methods for basic memory management operations: alloc, realloc, free.
Definition at line 41 of file gimbal_iallocator.h.
| GblInterface GblIAllocatorClass::base |
Inherited base class GblIAllocator.
Definition at line 41 of file gimbal_iallocator.h.
| GBL_RESULT(* GblIAllocatorClass::pFnAlloc) (GblIAllocator *pSelf, const GblStackFrame *pFrame, size_t size, size_t align, const char *pDbgStr, void **ppData) |
Virtual method invoked when an allocation is requested.
Definition at line 43 of file gimbal_iallocator.h.
| GBL_RESULT(* GblIAllocatorClass::pFnRealloc) (GblIAllocator *pSelf, const GblStackFrame *pFrame, void *pData, size_t newSize, size_t newAlign, void **ppNewData) |
Virtual method invoked when a reallocation is requested.
Definition at line 45 of file gimbal_iallocator.h.
| GBL_RESULT(* GblIAllocatorClass::pFnFree) (GblIAllocator *pSelf, const GblStackFrame *pFrame, void *pData) |
Virtual method invoked when a free is requested.
Definition at line 47 of file gimbal_iallocator.h.
| GBL_RESULT(* GblIAllocatorClass::pFnParent) (const GblIAllocator *pSelf, GblIAllocator **ppParent) |
Virtual method for retrieving the upstream parent fallback allocator.
Definition at line 49 of file gimbal_iallocator.h.