read

open override fun read(): Int(source)

Reads a single byte from the ByteArrayInputStream

Return

the read byte or -1 if the end of the ByteArrayInputStream is reached

Since

0.1.0

Throws

if an I/O error occurs


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

Reads bytes from the ByteArrayInputStream into a ByteArray

Return

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

Since

0.1.0

Parameters

b

The ByteArray to read into

off

The offset to start reading into

len

The length of the ByteArray to read into

Throws

if an I/O error occurs