pub fn decode_list_with_max<T: SszDecode>( bytes: &[u8], max_len: usize, ) -> Result<Vec<T>, DecodeError>
Decode an SSZ list, rejecting inputs with more than max_len items before decoding item bodies.
max_len