read
fun read(destination: ByteArray, size: Int = destination.size, sourceOffset: Long = 0, destinationOffset: Int = 0)(source)
Reads size bytes from the native memory block into destination.
The read starts at sourceOffset in the native memory region and writes into destination starting at destinationOffset.
Throws
if size, sourceOffset, or destinationOffset is negative
if the requested range is out of bounds in either the native memory block or destination