rlp / org.apache.tuweni.rlp / RLP / decodeLong

decodeLong

static fun decodeLong(source: Bytes): Long (source)

Read an RLP encoded long from a Bytes value.

Parameters

source - The RLP encoded bytes.

Exceptions

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

Return
A long.

static fun decodeLong(source: Bytes, lenient: Boolean): Long (source)

Read an RLP encoded long from a Bytes value.

Parameters

source - The RLP encoded bytes.

lenient - 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
A long.