Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-68312

Repeated calls to QDataStream::skipRawData do not advance the device position

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.10.1
    • Core: I/O
    • None

    Description

      If you make back to back calls to skipRawData the QIODevice will have essentially only skipped the number of bytes in the last skipRawData call.

      stream.skipRawData( 16 ); // position is now pos + 16
      stream.skipRawData( 16 ); // position is still pos + 16 (not pos + 32)

      We ran into this reading binary data out of a file. Looking at QIODevice::skip it may not affect text based reading of a QFile.

       

      Making calls this way works correctly in 5.9.5

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            abader Adam Bader
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes