Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Does QTextStream::seek(qint64 pos) iterate through a file to reach the position?
polluxpolaris last edited by
Is the iterative behavior of QDataStream::skipRawData(int len) similar to QTextStream::seek(qint64 pos)?
I'm working with a data stream and I want to buffer an array vectors (QVector<double> *dataVectors) to a QFile on hdd. I also want to be able to index into a previously saved QFile to retrieve my buffer. Ideally, I'd like to index directly into my QFile using QDataStream but it seems like I have to use skip, this can become prohibitive as my QFile grows larger.
I looked at the source code for QIODevice::seek(qint64 pos) and it seems to rely on .skip(int len) anyways. Is it true that QIODevice:seek iterates through the file instead of indexing directly into the middle?