99 #define kAlloc_Get_(ALLOC, SIZE, MEM) kxAlloc_Get_(ALLOC, SIZE, MEM)
100 #define kAlloc_GetZero_(ALLOC, SIZE, MEM) kxAlloc_GetZero_(ALLOC, SIZE, MEM)
101 #define kAlloc_Free_(ALLOC, MEM) kxAlloc_Free_(ALLOC, MEM)
102 #define kAlloc_FreeRef_(ALLOC, MEM) kxAlloc_FreeRef_(ALLOC, MEM)
104 #define kAlloc_App_() kxAlloc_App_()
105 #define kAlloc_System_() kxAlloc_System_()
106 #define kAlloc_Fallback_(ALLOC) kxAlloc_Fallback_(ALLOC)
110 #include <kApi/kAlloc.x.h>
kAlloc kAlloc_App()
Gets the allocator that should normally be used by applications to request memory.
kStatus kAlloc_FreeRef(kAlloc alloc, void *mem)
Frees a block of memory and sets the memory pointer to kNULL.
kAlloc kAlloc_Fallback(kAlloc alloc)
Returns the passed allocator, or if null, the App allocator.
Represents an unsigned integer that can store a pointer address.
Abstract base class for memory allocator types.
kStatus kAlloc_Get(kAlloc alloc, kSize size, void *mem)
Allocates a block of memory.
Essential API declarations.
kStatus kAlloc_GetZero(kAlloc alloc, kSize size, void *mem)
Allocates a block of memory and zero-initializes the block.
kStatus kAlloc_Free(kAlloc alloc, void *mem)
Frees a block of memory.
Represents an enumeration of error codes.
kAlloc kAlloc_System()
Gets the system allocator.