see ya later allocator

This commit is contained in:
IlyaShurupov 2024-03-22 14:05:03 +03:00 committed by Ilya Shurupov
parent 57d5591d4a
commit fa2d0aaa92
44 changed files with 32 additions and 1693 deletions

View file

@ -1,26 +0,0 @@
#pragma once
#include "Environment.hpp"
namespace tp {
class HeapAlloc {
#ifdef MEM_DEBUG
ualni mNumAllocations = 0;
struct MemHeadLocal* mEntry = nullptr;
#endif
public:
HeapAlloc() = default;
~HeapAlloc();
public:
void* allocate(ualni aBlockSize);
void deallocate(void* aPtr);
public:
[[nodiscard]] bool checkWrap() const { return false; }
void checkValid() {}
};
}