CyberEngineMkIII
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Heap.hpp
Go to the documentation of this file.
1 namespace CYB {
3  namespace API {
5  class Heap {
6  public:
17  virtual void* Alloc(const int ASize) = 0;
29  virtual void* Realloc(void* const APreviousAllocation, const int ANewSize) = 0;
36  virtual void Free(void* const APreviousAllocation) noexcept = 0;
37  };
38  };
39 };
virtual void Free(void *const APreviousAllocation) noexcept=0
Return memory to the heap. Data in allocated range will be lost.
virtual void * Alloc(const int ASize)=0
Allocate memory from the heap for use.
virtual void * Realloc(void *const APreviousAllocation, const int ANewSize)=0
Allocate memory from the heap for use while preserving previous data. Passing a valid APreviousAlloca...
An interface which can allocate memory.
Definition: Heap.hpp:5