read

abstract fun read(offset: Long, destination: ByteArray, destinationOffset: Int, length: Int): Int

Reads up to length bytes starting at offset into destination at destinationOffset and returns how many bytes were read.