Deactivated User
09/20/2017, 9:07 AMheader fun ByteArray.copyRangeTo(srcPos: Int, dst: ByteArray, dstPos: Int, count: Int) {
for (n in 0 until count) dst[dstPos + n] = this[srcPos + n]
}
Here I provide a generic implementation, that can be improved using System.arraycopy in JVM or the former for JS typed arrays, but as an optimization, not mandatory. So for example I wouldn’t have to implement for Konan at the very beginning and implement it later when optimizing thingsudalov
Deactivated User
09/25/2017, 9:30 AM