tuweni / org.apache.tuweni.rlp / RLP / decodeValue

decodeValue

static fun decodeValue(source: Bytes!): Bytes! (source)

Read an RLP encoded value from a Bytes value.

Parameters

source - Bytes!: The RLP encoded bytes.

Exceptions

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

EndOfRLPException - If there are no RLP values to read.

Return
Bytes!: The bytes for the value.

static fun decodeValue(source: Bytes!, lenient: Boolean): Bytes! (source)

Read an RLP encoded value from a Bytes value.

Parameters

source - Bytes!: The RLP encoded bytes.

lenient - Boolean: 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 RLP values to read.

Return
Bytes!: The bytes for the value.