32#ifndef ZYCORE_ALLOCATOR_H
33#define ZYCORE_ALLOCATOR_H
ZyanStatus(* ZyanAllocatorAllocate)(struct ZyanAllocator_ *allocator, void **p, ZyanUSize element_size, ZyanUSize n)
Defines the ZyanAllocatorAllocate function prototype.
Definition Allocator.h:64
ZyanStatus(* ZyanAllocatorDeallocate)(struct ZyanAllocator_ *allocator, void *p, ZyanUSize element_size, ZyanUSize n)
Defines the ZyanAllocatorDeallocate function prototype.
Definition Allocator.h:77
ZyanStatus ZyanAllocatorInit(ZyanAllocator *allocator, ZyanAllocatorAllocate allocate, ZyanAllocatorAllocate reallocate, ZyanAllocatorDeallocate deallocate)
Initializes the given ZyanAllocator instance.
struct ZyanAllocator_ ZyanAllocator
Defines the ZyanAllocator struct.
ZyanAllocator * ZyanAllocatorDefault(void)
Returns the default ZyanAllocator instance.
#define ZYAN_REQUIRES_LIBC
Marks functions that require libc (cannot be used with ZYAN_NO_LIBC).
Definition Defines.h:468
#define ZYCORE_EXPORT
Symbol is exported in shared library builds.
Definition Defines.h:330
Status code definitions and check macros.
ZyanU32 ZyanStatus
Defines the ZyanStatus data type.
Definition Status.h:48
Includes and defines some default data types.
size_t ZyanUSize
Definition Types.h:224
Defines the ZyanAllocator struct.
Definition Allocator.h:89
ZyanAllocatorAllocate reallocate
The reallocate function.
Definition Allocator.h:97
ZyanAllocatorDeallocate deallocate
The deallocate function.
Definition Allocator.h:101
ZyanAllocatorAllocate allocate
The allocate function.
Definition Allocator.h:93