10 #ifndef SLPROJECT_SLIOMEMORY_H
11 #define SLPROJECT_SLIOMEMORY_H
20 bool exists(std::string path);
21 std::vector<char>&
get(std::string path);
22 void set(std::string path,
const std::vector<char>& data);
23 void clear(std::string path);
31 size_t read(
void* buffer,
size_t size);
46 size_t write(
const void* buffer,
size_t size);
SLIOStream implementation for reading from memory.
SLIOReaderMemory(std::string path)
bool seek(size_t offset, Origin origin)
size_t read(void *buffer, size_t size)
Interface for accessing external data using streams.
SLIOStream implementation for reading to memory.
bool seek(size_t offset, Origin origin)
SLIOWriterMemory(std::string path)
size_t write(const void *buffer, size_t size)
Collection of functions for accessing files stored in memory.
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)