Example #1
0
 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;
 }
Example #2
0
bool DynamicMemoryBlockBase::Alloc()
{
	return AllocAlign(GetSize() - GetUsedSize()) != 0;
}