1 #ifndef OPENMW_COMPONENTS_FILES_MEMORYSTREAM_H
2 #define OPENMW_COMPONENTS_FILES_MEMORYSTREAM_H
11 MemBuf(
char const* buffer,
size_t size)
14 char* nonconstBuffer = (
const_cast<char*
>(buffer));
15 this->setg(nonconstBuffer, nonconstBuffer, nonconstBuffer + size);
24 , std::istream(static_cast<std::streambuf*>(this))
MemBuf(char const *buffer, size_t size)
Definition: memorystream.hpp:11
IMemStream(char const *buffer, size_t size)
Definition: memorystream.hpp:22
Definition: memorystream.hpp:9
A variant of std::istream that reads from a constant in-memory buffer.
Definition: memorystream.hpp:20