static fun decodeInt(source: Bytes): Int
(source)
Read an RLP encoded integer from a Bytes value.
source
- The RLP encoded bytes.
InvalidRLPEncodingException
- If there is an error decoding the RLP source.
Return
An integer.
static fun decodeInt(source: Bytes, lenient: Boolean): Int
(source)
Read an RLP encoded integer 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
An integer.