libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
Loading...
Searching...
No Matches
gimbal_iallocator.h File Reference

Go to the source code of this file.

Data Structures

struct  GblIAllocatorClass
 

Macros

Type System

Type UUID and cast operators

#define GBL_IALLOCATOR_TYPE
 
#define GBL_IALLOCATOR(self)
 
#define GBL_IALLOCATOR_CLASS(klass)
 
#define GBL_IALLOCATOR_GET_CLASS(self)
 

Typedefs

typedef struct GblIAllocator GblIAllocator
 

Functions

GblType GblIAllocator_type (void)
 
GblIAllocator * GblIAllocator_parent (const GblIAllocator *pSelf)
 
Memory Management

Memory allocation, reallocation, and freeing entry points

GBL_RESULT GblIAllocator_alloc (GblIAllocator *pSelf, const GblStackFrame *pFrame, size_t size, size_t alignment, const char *pDebugString, void **ppData)
 
GBL_RESULT GblIAllocator_realloc (GblIAllocator *pSelf, const GblStackFrame *pFrame, void *pData, size_t newSize, size_t newAlign, void **ppNewData)
 
GBL_RESULT GblIAllocator_free (GblIAllocator *pSelf, const GblStackFrame *pFrame, void *pData)
 

Detailed Description

GblIAllocator abstract allocator interface.

Todo:
  • make specific allocators implement me
Author
2023 Falco Girgis

Definition in file gimbal_iallocator.h.

Macro Definition Documentation

◆ GBL_IALLOCATOR_TYPE

#define GBL_IALLOCATOR_TYPE

Type UUID for GblIAllocator.

Definition at line 21 of file gimbal_iallocator.h.

◆ GBL_IALLOCATOR

#define GBL_IALLOCATOR (   self)

Casts a GblInstance to GblIAllocator.

Definition at line 22 of file gimbal_iallocator.h.

◆ GBL_IALLOCATOR_CLASS

#define GBL_IALLOCATOR_CLASS (   klass)

Casts a GblClass to GblIAllocatorClass.

Definition at line 23 of file gimbal_iallocator.h.

◆ GBL_IALLOCATOR_GET_CLASS

#define GBL_IALLOCATOR_GET_CLASS (   self)

Gets a GblIAllocatorClass from a GblInstance.

Definition at line 24 of file gimbal_iallocator.h.

Typedef Documentation

◆ GblIAllocator

typedef struct GblIAllocator GblIAllocator

Definition at line 41 of file gimbal_iallocator.h.

Function Documentation

◆ GblIAllocator_type()

GblType GblIAllocator_type ( void  )

Returns the GblType UUID associated with the GblIAllocator type.