rlp / org.apache.tuweni.rlp / RLPReader / readValue

readValue

open fun readValue(): Bytes (source)

Read the next value 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
The bytes for the next value.

abstract fun readValue(lenient: Boolean): Bytes (source)

Read the next value from the RLP source.

Parameters

lenient - If false, an exception will be thrown if the value 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
The bytes for the next value.