mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-21 16:45:44 +00:00
25 lines
428 B
C++
25 lines
428 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
#include <memory>
|
|
|
|
class InMemoryZoneData
|
|
{
|
|
static constexpr size_t BUFFER_SIZE = 0x400000;
|
|
|
|
public:
|
|
class MemoryBuffer
|
|
{
|
|
public:
|
|
std::unique_ptr<char[]> m_data;
|
|
size_t m_size;
|
|
|
|
explicit MemoryBuffer(size_t size);
|
|
};
|
|
|
|
int64_t m_total_size;
|
|
std::vector<MemoryBuffer> m_buffers;
|
|
|
|
InMemoryZoneData();
|
|
void* GetBufferOfSize(size_t size);
|
|
}; |