mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-26 06:37:52 -05:00
ZoneLoading: Add ZoneMemory and the possibility to unload zones and their memory
This commit is contained in:
19
src/ZoneCommon/Zone/ZoneMemory.h
Normal file
19
src/ZoneCommon/Zone/ZoneMemory.h
Normal file
@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
#include "Zone/XBlock.h"
|
||||
#include <vector>
|
||||
|
||||
class ZoneMemory
|
||||
{
|
||||
std::vector<XBlock*> m_blocks;
|
||||
std::vector<void*> m_allocations;
|
||||
|
||||
public:
|
||||
ZoneMemory();
|
||||
~ZoneMemory();
|
||||
|
||||
void AddBlock(XBlock* block);
|
||||
|
||||
void* Alloc(size_t size);
|
||||
char* Dup(const char* str);
|
||||
};
|
Reference in New Issue
Block a user