Skip to main content

decode_rlp_list_partial

Function decode_rlp_list_partial 

Source
pub fn decode_rlp_list_partial<'a>(
    input: &'a [u8],
    accumulator: &mut DecodeAccumulator,
) -> Result<RlpList<'a>, DecodeError>
Expand description

Decodes one canonical RLP list from the start of input.

Warning: this intentionally accepts trailing bytes. Use decode_rlp_list when the full input must be consumed.

The input-length budget check applies to the full input slice, not only the consumed list bytes. Callers that decode from a larger outer buffer must pre-slice before calling this helper.