readNBytes

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

Returns the number of bytes that can be read (or skipped over) from this input stream without

Return

the number of bytes that can be read from this input stream without blocking.

Since

0.1.0

See also

Throws

if an I/O error occurs.

if this method is not supported.


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

Returns the number of bytes that can be read (or skipped over) from this input stream without

Return

the number of bytes that can be read from this input stream without blocking.

Since

0.1.0

Parameters

b

the buffer into which the data is read.

See also

Throws

if an I/O error occurs.

if this method is not supported.

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

Returns the number of bytes that can be read (or skipped over) from this input stream without