Reece Wilson
1ff9feb303
[+] Upcoming failure categories [+] Updated SysPushXXX prototypes [*] Restore bandwidth OnTick position for extrapolate (using current frame stats, ref to last) fractional lerps into the future with ref to average [*] Compression.cpp AuList<AuUInt8> upgrade was incomplete & could've been improved with modern apis
28 lines
554 B
C++
28 lines
554 B
C++
/***
|
|
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: Heap.hpp
|
|
Date: 2021-6-12
|
|
Author: Reece
|
|
***/
|
|
#pragma once
|
|
|
|
namespace Aurora::Memory
|
|
{
|
|
struct BaseHeap : Heap
|
|
{
|
|
void *base_ {};
|
|
AuUInt length_ {};
|
|
HeapStats stats;
|
|
|
|
virtual void UpdateStats() = 0;
|
|
|
|
inline HeapStats &GetStats() override
|
|
{
|
|
UpdateStats();
|
|
return stats;
|
|
}
|
|
};
|
|
|
|
AuSPtr<Heap> AllocateDivisionGlobal(Heap *heap, AuUInt32 length, AuUInt32 alignment);
|
|
} |