There are two issues but I combined them because there may be a single solution.
Given two arrays, how do I do a fast copy from one to the other in common code of a multiplatform project? On the JVM
System.arraycopyexists, but I believe this is a candidate for including in all platforms. I suggest
copyTounless this already exists and I’m missing it? Surely we’re not expecting a loop for array copying on native and JS platforms, both of which have faster approaches.
Regardless of platform, the paradigm of unsigned type arrays in 1.3 is causing me problems when I want to copy. I am unable to access the underlying storage. The proposal mentions something like
UIntArray.toIntArrayshould exist, but I can’t find it. How should I, even on the JVM, do a fast copy between two existing
UByteArrays? These are fairly common use cases.