Added Region::maybeGrow and Region::maybeShrink helper functions to be shared by multiple Allocators

This commit is contained in:
2026-09-28 00:13:14 -07:00
parent 9fe6784da1
commit 713fa239f5
3 changed files with 36 additions and 18 deletions

View File

@@ -49,6 +49,10 @@ public:
size_t getMaxSize() const;
std::byte* getAddress() const;
// Helper functions for allocators
bool maybeGrow(size_t minSize);
void maybeShrink(size_t targetSize);
private:
std::byte* m_data;
size_t m_committedSize;