readAtMost

open override fun readAtMost(pos: Long, buf: ByteArray, off: Int, len: Int): Int(source)

Reads at most len bytes from the file at the specified pos into the buf array.

Return

the number of bytes read, or -1 if the end of the file is reached

Throws

if an I/O error occurs