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

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

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core: I/O
    • Labels:
      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

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

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes