1 #ifndef GALAXY_I_ALLOCATOR_H
2 #define GALAXY_I_ALLOCATOR_H
28 typedef void* (*GalaxyMalloc)(uint32_t size,
const char* typeName);
38 typedef void* (*GalaxyRealloc)(
void* ptr, uint32_t newSize,
const char* typeName);
void(* GalaxyFree)(void *ptr)
Free function.
Definition: GalaxyAllocator.h:45
void *(* GalaxyRealloc)(void *ptr, uint32_t newSize, const char *typeName)
Reallocate function.
Definition: GalaxyAllocator.h:38
void *(* GalaxyMalloc)(uint32_t size, const char *typeName)
Allocate function.
Definition: GalaxyAllocator.h:28
Custom memory allocator for GOG Galaxy SDK.
Definition: GalaxyAllocator.h:51
GalaxyAllocator()
GalaxyAllocator default constructor.
Definition: GalaxyAllocator.h:55
GalaxyMalloc galaxyMalloc
Allocation function.
Definition: GalaxyAllocator.h:74
GalaxyRealloc galaxyRealloc
Reallocation function.
Definition: GalaxyAllocator.h:75
GalaxyAllocator(GalaxyMalloc _galaxyMalloc, GalaxyRealloc _galaxyRealloc, GalaxyFree _galaxyFree)
GalaxyAllocator constructor.
Definition: GalaxyAllocator.h:68
GalaxyFree galaxyFree
Free function.
Definition: GalaxyAllocator.h:76