All the array containers (except for Array) are backed by ArrayBuffer, but we currently have special handling for our string array containers.
This PR generalizes the indexing algorithm to operate on the "raw" bytes directly for any data. This way we only move contigous blocks of binary data between src and target and avoid needing to move data out of the buffers into JS objects.
All the array containers (except for
Array
) are backed byArrayBuffer
, but we currently have special handling for our string array containers.This PR generalizes the indexing algorithm to operate on the "raw" bytes directly for any data. This way we only move contigous blocks of binary data between src and target and avoid needing to move data out of the buffers into JS objects.