picky_asn1_der

Function from_reader_with_max_len

Source
pub fn from_reader_with_max_len<'a, T: Deserialize<'a>>(
    reader: impl Read + 'a,
    max_len: usize,
) -> Result<T>
Expand description

Deserializes T from reader reading at most n bytes.