static fun decodeString(source: Bytes): String
(source)
Read an RLP encoded string from a Bytes value.
source
- The RLP encoded bytes.
InvalidRLPEncodingException
- If there is an error decoding the RLP source.
Return
A string.
static fun decodeString(source: Bytes, lenient: Boolean): String
(source)
Read an RLP encoded string from a Bytes value.
source
- The RLP encoded bytes.
lenient
- If false
, an exception will be thrown if the value is not minimally encoded.
InvalidRLPEncodingException
- If there is an error decoding the RLP source.
Return
A string.