Qt implementation of the interface class sf::IFileMapper.
More...
#include <FileMapper.h>
|
static IFileMapper * | instantiate (bool native) |
| Gets an instance of this interface using a native or non-native (Qt) implementation.
|
|
Qt implementation of the interface class sf::IFileMapper.
◆ FileMapper() [1/2]
sf::qt::FileMapper::FileMapper |
( |
| ) |
|
◆ FileMapper() [2/2]
sf::qt::FileMapper::FileMapper |
( |
const QString & |
filepath, |
|
|
qint64 |
ofs, |
|
|
qint64 |
sz |
|
) |
| |
Initializing constructor.
- Parameters
-
filepath | Path to the file. |
ofs | Offset into the file. |
sz | Size of the chunk in the file. |
◆ ~FileMapper()
sf::qt::FileMapper::~FileMapper |
( |
| ) |
|
|
override |
◆ createView()
void sf::qt::FileMapper::createView |
( |
size_t |
sz | ) |
|
|
overridevirtual |
◆ getFile()
QFile & sf::qt::FileMapper::getFile |
( |
| ) |
|
Gets the underlying file class.
◆ getPtr()
void * sf::qt::FileMapper::getPtr |
( |
| ) |
|
|
overridevirtual |
◆ initialize() [1/2]
void sf::qt::FileMapper::initialize |
( |
| ) |
|
|
overridevirtual |
◆ initialize() [2/2]
void sf::qt::FileMapper::initialize |
( |
const QString & |
filepath, |
|
|
qint64 |
ofs, |
|
|
qint64 |
sz |
|
) |
| |
Initialize using an existing file.
- Parameters
-
filepath | Path to the file. |
ofs | Offset into the file. |
sz | Size of the chunk in the file. |
◆ mapView()
bool sf::qt::FileMapper::mapView |
( |
| ) |
|
|
overridevirtual |
◆ setView()
void sf::qt::FileMapper::setView |
( |
qint64 |
ofs, |
|
|
qint64 |
sz |
|
) |
| |
Sets the part of the file to be mapped.
- Parameters
-
ofs | Offset into the file. |
sz | Size of the chunk in the file. |
◆ unmapView()
bool sf::qt::FileMapper::unmapView |
( |
| ) |
|
|
overridevirtual |
The documentation for this class was generated from the following file: