rename AbstractMemoryAllocator::Alloc(const uint64 size).

This commit is contained in:
2021-05-07 18:56:48 +08:00
parent 8903a7675f
commit 1e0c0cfa79
2 changed files with 2 additions and 2 deletions

View File

@@ -41,7 +41,7 @@ namespace hgl
return result;
}
bool AbstractMemoryAllocator::AllocMemory(const uint64 size)
bool AbstractMemoryAllocator::Alloc(const uint64 size)
{
if(size<=0)return(false);

View File

@@ -29,7 +29,7 @@ namespace hgl
bool MemoryBlock::Alloc(const uint64 size,const uint64 uint_size)
{
memory_allocator->SetAllocUnitSize(uint_size);
return memory_allocator->AllocMemory(size);
return memory_allocator->Alloc(size);
}
bool MemoryBlock::Write(const uint64 target,const void *source,const uint64 size)