21 MemoryBufferBackedFileContents(
void* data,
size_t size, FileContentsHints hints) : FileContents(nullptr, size, hints) {
Abstract base class storing data read from a file.
MemoryBufferBackedFileContents(Memory::MemoryBuffer &&buffer, const std::string &path, FileContentsHints hints)
Create a file contents object that takes ownership of an existing memorybuffer.
Memory::MemoryBuffer take() override
Take ownership of underlying memorybuffer if exists.