18#include <cmrc/cmrc.hpp>
32 membuf(
const char* base,
size_t size)
34 char* p{
const_cast<char*
>(base) };
35 this->setg(p, p, p + size);
57 :
membuf(base, reinterpret_cast<uintptr_t>(end) - reinterpret_cast<uintptr_t>(base)),
58 std::istream(static_cast<std::streambuf*>(this)) {}
65 std::istream(static_cast<std::streambuf*>(this)) {}
CMRC_DECLARE(instinct)
Defines the namespace of the filesystem.
Definition CMakeRC.hpp:28
~membuf() override=default
Destructor.
membuf(membuf &&)=default
Move constructor.
membuf(const char *base, size_t size)
Constructor.
Definition CMakeRC.hpp:32
membuf & operator=(membuf &&)=default
Move assignment operator.
membuf(const membuf &)=default
Copy constructor.
membuf & operator=(const membuf &)=default
Copy assignment operator.
Definition CMakeRC.hpp:52
memstream(char const *base, char *const end)
Constructor.
Definition CMakeRC.hpp:56
memstream(char const *base, size_t size)
Constructor.
Definition CMakeRC.hpp:63