[][src]Function picky::pem::parse_pem

pub fn parse_pem<T: ?Sized + AsRef<[u8]>>(
    input: &T
) -> Result<Pem<'static>, PemError>

Parse a PEM-encoded stream from a u8 representation

If the input contains line ending characters (\r, \n), a copy of input is allocated striping these. If you can strip these with minimal data copy you should do it beforehand.