write

fun write(source: ByteArray, size: Int, sourceOffset: Int = 0, destinationOffset: Long = 0)(source)

Writes size bytes from source into the native memory block.

Reading starts at sourceOffset in source, and writing starts at destinationOffset in the native memory region.

Throws

if the requested range is out of bounds in either source or the native memory block.