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

Implement QAsyncFile / QFileV2 / ???

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • None
    • Core: I/O
    • None

    Description

      As discussed at the hacking day of Contributor Summit.

      This is a tentative plan - depends on outcome of QTBUG-136763.

      To be implemented as a QFileDevice(/QIODevice) as a replacement / complement to QFile that returns data asynchronously, and uses the QIODevice signals consistently. The implementation should extend the QFileDevice API with new signals. For example, for an async open() call (or should we call it connect()?).

      The idea of the implementation is to piggy-back off the work that will go into QTBUG-136763 and use that to read the file in full.

      Potential considerations:

      • maxReadBufferSize mechanism, to avoid pulling a full multi-gigabyte file into memory unless desired.
      • How to request file data starting at some offset - or will this simply not be supported (e.g. you have to skip the bytes you don't care about and then read from the offset you want)
      • ...

      Attachments

        Issue Links

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

          Activity

            People

              manordheim Mårten Nordheim
              manordheim Mårten Nordheim
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes