Abstract base class storing data read from a file.
Definition: FileContents.h:20
size_t size
Number of data bytes.
Definition: FileContents.h:29
Memory::MemoryBuffer takeCopy()
Definition: FileContents.cpp:3
const uint8_t * ptr
Start of buffer storing file data. Use.
Definition: FileContents.h:27
FileContentsHints hints
Definition: FileContents.h:31
Definition: MMapBackedFileContents.h:9
StringView origin() override
Definition: MMapBackedFileContents.h:22
FileHandle::Ptr file
Definition: MMapBackedFileContents.h:10
Memory::MemoryBuffer take() override
Take ownership of underlying memorybuffer if exists.
Definition: MMapBackedFileContents.h:21
~MMapBackedFileContents() override=default
std::string path
Definition: MMapBackedFileContents.h:11
MMapBackedFileContents(const uint8_t *ptr, size_t size, const FileHandle::Ptr &file, const std::string &path, FileContentsHints hints)
Definition: MMapBackedFileContents.h:13