read

open suspend override fun read(): UByte

Reads and returns a byte from the stream, indented by currentOffset.

Use hasNext to check is there more data in the stream.

Note: NoSuchElementException will be thrown if there is no more data.

Return

next byte from the stream

See also

Throws