Skip to main content

decode_list_with_max

Function decode_list_with_max 

Source
pub fn decode_list_with_max<T: SszDecode>(
    bytes: &[u8],
    max_len: usize,
) -> Result<Vec<T>, DecodeError>
Expand description

Decode an SSZ list, rejecting inputs with more than max_len items before decoding item bodies.