Function decode_list_with_memory_budget
pub fn decode_list_with_memory_budget<T>(
buf: &mut &[u8],
memory_budget: usize,
) -> Result<Vec<T>, Error>where
T: Decodable + InMemorySize,Expand description
Decodes an RLP list, stopping once the cumulative [InMemorySize] of decoded items exceeds
memory_budget bytes. Any remaining items in the payload are skipped.