8namespace circus::filesystem {
19 std::string _contents;
34 std::string contents((std::istreambuf_iterator<char>(is)),
35 std::istreambuf_iterator<char>());
36 _contents = std::move(contents);
45 [[nodiscard]] std::size_t
size() const noexcept {
46 return _contents.size();
reader__()
Default constructor initializes an empty content buffer.
Definition reader.hpp:25
std::string operator()(std::istream &is)
Reads entire contents of the provided input stream into internal buffer.
Definition reader.hpp:33
std::size_t size() const noexcept
Get the size in bytes of the stored content.
Definition reader.hpp:45
const std::string & get_file_contents() const noexcept
Provides read-only access to the stored file contents.
Definition reader.hpp:54