readNBytes

open override fun readNBytes(n: Int): ByteArray(source)

Reads bytes from the input stream and increases the count by the number of read bytes

Return

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

Since

0.1.1

Throws

if an I/O error occurs


open override fun readNBytes(b: ByteArray, off: Int, len: Int): Int(source)

Reads bytes from the input streamand increases the count by the number of read bytes

Return

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

Since

0.1.1

Throws

if an I/O error occurs