2#include <QTemporaryFile>
26 FileMapper(
const QString& filepath, qint64 ofs, qint64 sz);
39 void initialize(
const QString& filepath, qint64 ofs, qint64 sz);
class for file mapping
Definition IFileMapper.h:12
Qt implementation of the interface class sf::IFileMapper.
Definition qt/FileMapper.h:13
void initialize(const QString &filepath, qint64 ofs, qint64 sz)
Initialize using an existing file.
void * getPtr() override
Overridden from sf::IFileMapper.
FileMapper(const QString &filepath, qint64 ofs, qint64 sz)
Initializing constructor.
~FileMapper() override
Overridden from sf::IFileMapper.
void createView(size_t sz) override
Overridden from sf::IFileMapper.
void setView(qint64 ofs, qint64 sz)
Sets the part of the file to be mapped.
bool unmapView() override
Overridden from sf::IFileMapper.
bool mapView() override
Overridden from sf::IFileMapper.
QFile & getFile()
Gets the underlying file class.
void initialize() override
Overridden from sf::IFileMapper.
FileMapper()
Default constructor.
#define _MISC_CLASS
Definition misc/global.h:40
Definition qt/FileMapper.h:7