static fun <T : Any!> decodeList(source: Bytes!, fn: Function<RLPReader!, T>!): T (source)
Read an RLP encoded list of values from a Bytes value.
source - Bytes!: The RLP encoded bytes.
fn - Function<RLPReader!, T>!: A function that will be provided a RLPReader.
- The result type of the reading function.
InvalidRLPEncodingException - If there is an error decoding the RLP source.
InvalidRLPTypeException - If the first RLP value is not a list.
Return
T: The result from the reading function.
static fun <T : Any!> decodeList(source: Bytes!, lenient: Boolean, fn: Function<RLPReader!, T>!): T (source)
Read an RLP encoded list of values from a Bytes value.
source - Bytes!: The RLP encoded bytes.
lenient - Boolean: If false, an exception will be thrown if the value is not minimally encoded.
fn - Function<RLPReader!, T>!: A function that will be provided a RLPReader.
- The result type of the reading function.
InvalidRLPEncodingException - If there is an error decoding the RLP source.
InvalidRLPTypeException - If the first RLP value is not a list.
Return
T: The result from the reading function.