readFully

open fun readFully(pos: Long, buf: ByteArray)(source)

Throws

if an I/O error occurs

if the end of the file is reached before reading all bytes that fulfilled the request


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

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

Throws

if an I/O error occurs

if the end of the file is reached before reading all bytes that fulfilled the request