tuweni / org.apache.tuweni.rlp / RLP / decodeString

decodeString

static fun decodeString(source: Bytes!): String! (source)

Read an RLP encoded string from a Bytes value.

Parameters

source - Bytes!: The RLP encoded bytes.

Exceptions

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

Return
String!: A string.

static fun decodeString(source: Bytes!, lenient: Boolean): String! (source)

Read an RLP encoded string 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.

Return
String!: A string.