readByte

fun readByte(): Byte

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

See also

Throws

when not even a byte is available for reading.