blob: 1cab961929d8a9c49f67b12315769581e9ee09d2 [file] [log] [blame]
package kotlinx.coroutines.experimental.internal
internal actual fun <E> arraycopy(source: Array<E>, srcPos: Int, destination: Array<E?>, destinationStart: Int, length: Int) {
var destinationIndex = destinationStart
for (sourceIndex in srcPos until srcPos + length) {
destination[destinationIndex++] = source[sourceIndex]
}
}