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

[QByteArrayView] missing converters

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.2.2
    • None
    • 8
    • Team Two Foundation Sprint 50, Team Two Foundation Sprint 51, Foundation PM Prioritized

    Description

      `QByteArray` has a few converter functions like `toBase64`, `toDouble` etc. it would be great if these converters could also be supported by `QByteArrayView`.

      this would allow users to use `QByteArray` converters on byte arrays, which are not owned by `QByteArray`. e.g. i'm thinking about something like:

      auto base64(const char *data, size_t size)
      {
          return QByteArrayView{data, size}.toBase64();
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              mmutz Marc Mutz
              timblechmann tim blechmann
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes