22 static_assert(
sizeof(
Block) == 0x10);
47 std::size_t
Size(
void const* a_mem)
const override {
return *
static_cast<const std::size_t*
>(a_mem) & ~(std::size_t{ 3 } << 62); }
53 void*
Allocate(std::size_t a_size, std::size_t a_alignment);
72 static_assert(
sizeof(ScrapHeap) == 0x90);
Definition: IMemoryStore.h:8
Definition: ScrapHeap.h:10
~ScrapHeap() override
Definition: ScrapHeap.h:44
std::size_t Size(void const *a_mem) const override
Definition: ScrapHeap.h:47
void Deallocate(void *a_mem)
bool ContainsBlockImpl(const void *a_block) const override
Definition: ScrapHeap.h:49
std::uint32_t pmpBarrier
Definition: ScrapHeap.h:70
std::size_t reserveSize
Definition: ScrapHeap.h:63
void * AllocateAlignImpl(std::size_t a_size, std::uint32_t a_alignment) override
Definition: ScrapHeap.h:50
std::uint32_t freeSmallBlocks
Definition: ScrapHeap.h:68
Block * lastBlock
Definition: ScrapHeap.h:59
std::uint32_t keepPagesRequest
Definition: ScrapHeap.h:66
static constexpr auto RTTI
Definition: ScrapHeap.h:12
std::size_t totalAllocated
Definition: ScrapHeap.h:65
static constexpr auto VTABLE
Definition: ScrapHeap.h:13
FreeTreeNode * freeList
Definition: ScrapHeap.h:58
std::uint32_t totalAllocatedBlocks
Definition: ScrapHeap.h:69
std::uint32_t totalFreeBlocks
Definition: ScrapHeap.h:67
void * baseAddress
Definition: ScrapHeap.h:60
std::size_t minCommit
Definition: ScrapHeap.h:64
void * commitEnd
Definition: ScrapHeap.h:62
void GetMemoryStats(MemoryStats *) override
Definition: ScrapHeap.h:48
void * endAddress
Definition: ScrapHeap.h:61
FreeBlock * smallBlocks[6]
Definition: ScrapHeap.h:57
void * Allocate(std::size_t a_size, std::size_t a_alignment)
void DeallocateAlignImpl(void *&a_block) override
Definition: ScrapHeap.h:51
bool VirtualFree(void *a_address, std::size_t a_size, std::uint32_t a_type) noexcept
constexpr auto MEM_RELEASE
Definition: KERNEL32.h:18
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_ScrapHeap(static_cast< std::uint64_t >(690278))
constexpr std::array< REL::ID, 1 > VTABLE_ScrapHeap
Definition: Offsets_VTABLE.h:12626
Definition: IMemoryStoreBase.h:6
Definition: ScrapHeap.h:16
Block * prev
Definition: ScrapHeap.h:20
std::size_t sizeFlags
Definition: ScrapHeap.h:19
Definition: ScrapHeap.h:25
FreeBlock * right
Definition: ScrapHeap.h:29
FreeBlock * left
Definition: ScrapHeap.h:28
Definition: ScrapHeap.h:34
FreeTreeNode * leftNode
Definition: ScrapHeap.h:38
std::size_t parentAndBlack
Definition: ScrapHeap.h:40
FreeTreeNode * rightNode
Definition: ScrapHeap.h:39
FreeTreeNode ** root
Definition: ScrapHeap.h:37