copyInto

context(env: JniEnv)
inline fun JByteArray.copyInto(destination: ByteArray, destinationOffset: Int = 0, startIndex: Int = 0, endIndex: Int = this.length): ByteArray(source)

Copies a region of this JVM byte[] into destination using getRegion and returns destination.

Parameters

destination

the destination Kotlin array.

destinationOffset

the first index of destination to write to.

startIndex

the first index of this JVM array to copy.

endIndex

the last (exclusive) index of this JVM array to copy.

Throws

if either region is out of bounds.