eggHeap almost matching

This commit is contained in:
robojumper
2024-05-05 10:20:28 +02:00
parent 2add8e8943
commit 4909f805ba
7 changed files with 246 additions and 34 deletions
+6 -1
View File
@@ -101,7 +101,7 @@ public:
/* 804957c0 */ static void free(void *memBlock, Heap *heap);
/* 80495830 */ void dispose();
/* 804958a0 */ void dump();
/* 804958b0 */ void dumpAll();
/* 804958b0 */ static void dumpAll();
/* 804959a0 */ Heap *becomeCurrentHeap();
/* 80495a00 */ Heap *_becomeCurrentHeapWithoutLock();
@@ -138,6 +138,11 @@ public:
inline int getArenaEnd() {
return (int)mHeapHandle->end;
}
inline const char *getName() {
return mName;
}
/* 80673ae8 */ static nw4r::ut::List sHeapList;
/* 80673af8 */ static OSMutex sRootMutex;
/* 80576740 */ static Heap *sCurrentHeap;
+2 -3
View File
@@ -14,9 +14,8 @@ public:
inline void makeAllZero() {
value = T();
}
inline TBitFlag() {
makeAllZero();
}
inline TBitFlag() {}
inline TBitFlag(T value): value(value) {}
inline T makeMask(u8 bit) const {
return 1 << bit;
}