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

QJsonDocument::fromJson should accept QByteArrayView

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.4
    • Core: Other
    • None
    • All

    Description

      QJsonDocument::fromJson currently only accepts QByteArray inputs. As far as I can tell there is no reason for this restriction, it only has drawbacks: it forces useless memory copies in some cases, eg. when the Json document is part of a larger buffer already present in memory.

       

      QJsonDocument::fromJson should accept QByteArrayView inputs too.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            irual I R
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes