write
fun write(source: ByteArray, size: Int = source.size, 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 size, sourceOffset, or destinationOffset is negative
if the requested range is out of bounds in either source or the native memory block