tuweni / org.apache.tuweni.rlp / RLPReader / readByte

readByte

open fun readByte(): Byte (source)

Read a byte from the RLP source.

Exceptions

InvalidRLPEncodingException - If there is an error decoding the RLP source.

EndOfRLPException - If there are no more RLP values to read.

Return
Byte: The byte for the next value.

open fun readByte(lenient: Boolean): Byte (source)

Read a byte from the RLP source.

Parameters

lenient - Boolean: If false, an exception will be thrown if the byte is not minimally encoded.

Exceptions

InvalidRLPEncodingException - If there is an error decoding the RLP source.

EndOfRLPException - If there are no more RLP values to read.

Return
Byte: The byte for the next value.