readByte

fun readByte(): Byte

Read the next byte or fail with EOFException if it’s not available. The returned byte is marked as consumed.

Exceptions

EOFException - when not even a byte is available for reading.

See Also

tryPeekByte

tryReadByte