readFully

fun readFully(b: ByteArray, off: Int = 0, len: Int = b.size - off)

Reads exactly len bytes from the current position into b starting at off. Throws SmbEndOfFileException if the end of the file is reached before len bytes are read.