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

Add a QBuffer-like class that wraps a QByteArrayView (or equivalent)

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • Core: I/O
    • None

    Description

      If one needs to feed a byte view (QByteArrayView, std::string_view...) into a QIODevice API, one can currently use QBuffer + QByteArray::fromRawData as a wrapper. That is a bit "sketchy"; it would be nicer to have another QIODevice that simply wraps the read-only data.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            peppe Giuseppe D'Angelo
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes