libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
Loading...
Searching...
No Matches
GblIAllocatorClass Struct Reference

#include <gimbal_iallocator.h>

Inheritance diagram for GblIAllocatorClass:
GblInterface GblClass GblArenaAllocatorClass GblContextClass GblModuleClass GblTestScenarioClass

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_ 
 

Additional Inherited Members

Detailed Description

GblClass VTable structure for GblIAllocator.

GblIAllocatorClass provides polymorphic methods for basic memory management operations: alloc, realloc, free.

Note
All operations are required to honor the requested alignment.

Definition at line 41 of file gimbal_iallocator.h.

Field Documentation

◆ base

GblInterface GblIAllocatorClass::base

Inherited base class GblIAllocator

Definition at line 41 of file gimbal_iallocator.h.

◆ pFnAlloc

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.

◆ pFnRealloc

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.

◆ pFnFree

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.

◆ pFnParent

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.


The documentation for this struct was generated from the following file: