fix(heap): Fix HeapAllocator class

This commit is contained in:
Daniel Hammer
2025-04-15 20:45:34 +02:00
parent 2e45efe855
commit 35cf3f7c80
5 changed files with 20 additions and 17 deletions
+4 -1
View File
@@ -3,14 +3,17 @@
namespace Memory {
class HeapAllocator {
static constexpr std::size_t headerMagic = 0x6CEF9AB4;
struct Node {
size_t size;
Node* next;
};
struct Header {
std::size_t magic;
std::size_t size;
}__attribute__((packed));
}__attribute__((packed)) ;
Node head{};