tryReadByte

fun tryReadByte(): Int

Read the next unsigned byte or return -1 if no more bytes available for reading. The returned byte is marked as consumed.

Return

an unsigned byte or -1 if not even a byte is available for reading.

See also