14 PL_FORCE_INLINE
void* Allocate(
size_t uiSize,
size_t uiAlign)
22 PL_ASSERT_DEBUG(uiAlign <= 8,
"This allocator does not guarantee alignments larger than 8. Use an aligned allocator to allocate the desired data type.");
24 void* ptr = malloc(uiSize);
25 PL_CHECK_ALIGNMENT(ptr, uiAlign);
30 PL_FORCE_INLINE
void* Reallocate(
void* pCurrentPtr,
size_t uiCurrentSize,
size_t uiNewSize,
size_t uiAlign)
32 void* ptr = realloc(pCurrentPtr, uiNewSize);
33 PL_CHECK_ALIGNMENT(ptr, uiAlign);
38 PL_ALWAYS_INLINE
void Deallocate(
void* pPtr)
43 PL_ALWAYS_INLINE
plAllocator* GetParent()
const {
return nullptr; }