copyInto

abstract fun copyInto(destination: ArrayWrapper<T>, destinationOffset: Int = 0, startIndex: Int = 0, endIndex: Int): ArrayWrapper<T>

将此数组的元素复制到目标数组中。

复制从 startIndex 指定的索引开始,到 endIndex 指定的索引结束(不包括 endIndex)。 元素将被复制到目标数组中,从 destinationOffset 指定的索引开始。

参考 kotlin.collections.copyInto

Return

目标数组

Parameters

destination

目标数组

destinationOffset

目标数组中的起始偏移量

startIndex

此数组中的起始索引

endIndex

此数组中的结束索引(不包括)