copyInto

actual open fun copyInto(offset: Int, target: ByteArray, targetOffset: Int, byteCount: Int)
expect fun copyInto(offset: Int = 0, target: ByteArray, targetOffset: Int = 0, byteCount: Int)

Copies bytes of this in [offset..offset+byteCount] to other in [targetOffset..targetOffset+byteCount].

Throws

if either range is out of bounds.

actual open fun copyInto(offset: Int, target: ByteArray, targetOffset: Int, byteCount: Int)
actual open fun copyInto(offset: Int, target: ByteArray, targetOffset: Int, byteCount: Int)