1#ifndef MEMORYBUFFERFILE_HH
2#define MEMORYBUFFERFILE_HH
16 void read(std::span<uint8_t> dst)
override;
17 void write(std::span<const uint8_t> src)
override;
20 void seek(
size_t newPos)
override;
22 void flush()
override;
24 const std::string&
getURL()
const override;
29 std::span<const uint8_t> 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
MemoryBufferFile(std::span< const uint8_t > buffer_)
void seek(size_t newPos) override
This file implemented 3 utility functions:
File memory_buffer_file(std::span< const uint8_t > buffer)