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

TypedArray construction from subset of a ArrayBuffer doesn't work

    XMLWordPrintable

Details

    Description

      Creation of the typed array view from a subset of given ArrayBuffer doesn't work correctly. The created typed array is initialized to 0's rather than showing a view to the subset of the values in the ArrayBuffer. This means that code like this doesn't work as expected:
      var srcBuffer = new Uint8Array( arrayBuffer, dataOffset, dataLength );

      Attached test code demonstrates the issue. The values in the created Uint8Array should be from the original ArrayBuffer, from the specified offset.

      Attachments

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

        Activity

          People

            laknoll Lars Knoll
            pakerane Pasi Keränen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes