14 # include <unordered_map>
17 std::unordered_map<std::string, std::vector<char>>
memoryFiles;
47 std::memcpy(buffer, memoryFile.data(),
size);
59 size_t size = (size_t)memoryFile.size();
91 memoryFile.insert(memoryFile.end(), (
char*)buffer, (
char*)buffer +
size);
104 size_t size = (size_t)memoryFile.size();
std::unordered_map< std::string, std::vector< char > > memoryFiles
SLIOReaderMemory(std::string path)
bool seek(size_t offset, Origin origin)
size_t read(void *buffer, size_t size)
bool seek(size_t offset, Origin origin)
SLIOWriterMemory(std::string path)
size_t write(const void *buffer, size_t size)
std::vector< char > & get(std::string path)
void set(std::string path, const std::vector< char > &data)
void clear(std::string path)
bool exists(std::string path)