added Free() function at MemoryBlock/MemoryAllocator class.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#ifndef HGL_MEMORY_ALLOCATOR_INCLUDE
|
||||
#ifndef HGL_MEMORY_ALLOCATOR_INCLUDE
|
||||
#define HGL_MEMORY_ALLOCATOR_INCLUDE
|
||||
|
||||
#include<hgl/type/DataType.h>
|
||||
@@ -66,7 +66,7 @@ namespace hgl
|
||||
virtual ~MemoryAllocator();
|
||||
|
||||
virtual bool Alloc(const uint64 size);
|
||||
virtual void Free();
|
||||
virtual void Free() override;
|
||||
};//class MemoryAllocator:public AbstractMemoryAllocator
|
||||
}//namespace hgl
|
||||
#endif//HGL_MEMORY_ALLOCATOR_INCLUDE
|
||||
|
@@ -29,6 +29,7 @@ namespace hgl
|
||||
virtual void * Get (const uint64 offset) {return memory_allocator->Get(offset);}
|
||||
|
||||
virtual void Clear ();
|
||||
virtual void Free ();
|
||||
virtual bool Alloc (const uint64 size,const uint64 uint_size=0);
|
||||
virtual bool Write (const uint64 target,const void *source,const uint64 size);
|
||||
virtual bool Write (const uint64 target,MemoryBlock *source,const uint64 offset,const uint64 size);
|
||||
|
Reference in New Issue
Block a user