Definition at line 959 of file qresource.cpp.
◆ QDynamicFileResourceRoot()
QDynamicFileResourceRoot::QDynamicFileResourceRoot |
( |
const QString & |
_root | ) |
|
|
inline |
Definition at line 967 of file qresource.cpp.
QDynamicBufferResourceRoot(const QString &_root)
◆ ~QDynamicFileResourceRoot()
QDynamicFileResourceRoot::~QDynamicFileResourceRoot |
( |
| ) |
|
|
inline |
Definition at line 968 of file qresource.cpp.
969 #if defined(QT_USE_MMAP)
const uchar * mappingBuffer() const
◆ mappingFile()
QString QDynamicFileResourceRoot::mappingFile |
( |
| ) |
const |
|
inline |
◆ registerSelf()
bool QDynamicFileResourceRoot::registerSelf |
( |
const QString & |
f | ) |
|
|
inline |
Definition at line 983 of file qresource.cpp.
Referenced by QResource::registerResource().
986 unsigned int data_len = 0;
994 #define MAP_FAILED -1 1006 if (!QT_FSTAT(fd, &st)) {
1008 ptr =
reinterpret_cast<uchar *
>(
1013 if (ptr && ptr != reinterpret_cast<uchar *>(
MAP_FAILED)) {
1015 data_len = st.st_size;
1021 #endif // QT_USE_MMAP 1026 data_len = file.size();
1027 data =
new uchar[data_len];
1031 ok = (data_len == (
uint)file.read((
char*)data, data_len));
const uchar * data(int node, qint64 *size) const
const T * ptr(const T &t)
bool registerSelf(const uchar *b)
The QFile class provides an interface for reading from and writing to files.
#define st(var, type, card)
static QByteArray encodeName(const QString &fileName)
By default, this function converts fileName to the local 8-bit encoding determined by the user's loca...
◆ type()
◆ fileName
QString QDynamicFileResourceRoot::fileName |
|
private |
◆ unmapLength
unsigned int QDynamicFileResourceRoot::unmapLength |
|
private |
◆ unmapPointer
uchar* QDynamicFileResourceRoot::unmapPointer |
|
private |
The documentation for this class was generated from the following file: