copyTo
expect fun Memory.copyTo(
destination: ByteArray,
offset: Int,
length: Int,
destinationOffset: Int = 0
): Unit
expect fun Memory.copyTo(
destination: ByteArray,
offset: Long,
length: Int,
destinationOffset: Int = 0
): Unit
Copies bytes from this memory range from the specified offset and length to the destination at destinationOffset.
fun Memory.copyTo(destination: ByteBuffer, offset: Int): Unit
fun Memory.copyTo(
destination: ByteBuffer,
offset: Long
): Unit
Copies bytes from this memory range from the specified offset to the destination buffer.