fun readByte(): Byte
Read the next byte or fail with EOFException if it's not available. The returned byte is marked as consumed.
EOFException - when not even a byte is available for reading.
EOFException
See Also
tryPeekByte
tryReadByte