void* CSimpleMemoryAllocator::AllocAlignZero(size_t size, IZ_UINT align, const IZ_CHAR* file, IZ_UINT line) { void* ret = AllocAlign(size, align, file, line); if (ret != IZ_NULL) { memset(ret, 0, size); } return ret; }
bool DynamicMemoryBlockBase::Alloc() { return AllocAlign(GetSize() - GetUsedSize()) != 0; }