20 throw FileException(
"Writing to MemoryBufferFile not supported");
45 static const std::string EMPTY;
62 return File(std::make_unique<MemoryBufferFile>(buffer));
size_t getSize() override
const std::string & getURL() const override
void write(std::span< const uint8_t > src) override
time_t getModificationDate() override
bool isReadOnly() const override
void read(std::span< uint8_t > dst) override
void seek(size_t newPos) override
This file implemented 3 utility functions:
File memory_buffer_file(std::span< const uint8_t > buffer)
constexpr auto copy(InputRange &&range, OutputIter out)