18 virtual void read(std::span<uint8_t> buffer) = 0;
19 virtual void write(std::span<const uint8_t> buffer) = 0;
23 [[nodiscard]]
virtual std::span<const uint8_t>
mmap();
26 [[nodiscard]]
virtual size_t getSize() = 0;
27 virtual void seek(
size_t pos) = 0;
28 [[nodiscard]]
virtual size_t getPos() = 0;
32 [[nodiscard]]
virtual const std::string&
getURL()
const = 0;
virtual void write(std::span< const uint8_t > buffer)=0
virtual size_t getSize()=0
virtual const std::string & getURL() const =0
virtual void read(std::span< uint8_t > buffer)=0
virtual std::string_view getOriginalName()
virtual std::string getLocalReference()
virtual void seek(size_t pos)=0
virtual ~FileBase()=default
virtual bool isReadOnly() const =0
virtual std::span< const uint8_t > mmap()
virtual size_t getPos()=0
virtual time_t getModificationDate()=0
virtual void truncate(size_t size)
This class manages the lifetime of a block of memory.
This file implemented 3 utility functions: