Solved File Mapping? How can I do it using Qt?
-
Hi, I would like to do a File Mapping (like
mmap
on Unix andCreateFileMapping
on Windows) using Qt in a plataform independend way.I saw that it is possible in a 2007 post of Qt Blog using the Qt QFile
map()
method.
https://www.qt.io/blog/2007/10/15/file-mappingBut I'm not found this
map()
documentation in the Qt 5.13QFile
official documentation:
https://doc.qt.io/qt-5/qfile.htmlSo now I have 2 doubts:
a) Where is the QFilemap()
documentation?
b) CanQDataStream
object replace this QFilemap()
method? I mean, can I useQDataStream
to read/write data in a disk file in any given file position without load it entirely on memory? -
Hi,
Because it's in a parent class. See QFileDevice.
When looking for a symbol that is not shown in the class documentation. Try the List of all members, including inherited members link.
-
@sgaist thank you!