tuweni / org.apache.tuweni.rlp / RLPReader / readUInt256

readUInt256

open fun readUInt256(): UInt256! (source)

Read a UInt256 value from the RLP source.

Exceptions

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

InvalidRLPTypeException - If the next RLP value cannot be represented as a long.

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

Return
UInt256!: A UInt256 value.

open fun readUInt256(lenient: Boolean): UInt256! (source)

Read a UInt256 value from the RLP source.

Parameters

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

Exceptions

InvalidRLPEncodingException - If there is an error decoding the RLP source, or the integer is not minimally encoded and `lenient` is false.

InvalidRLPTypeException - If the next RLP value cannot be represented as a long.

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

Return
UInt256!: A UInt256 value.