pub fn decode_into<'b>(
input: &[u8],
out: &'b mut [u8],
) -> Result<&'b [u8], ParseError>Expand description
Decodes %XX triples (either case) into out, copying every other byte,
and returns the written part.
§Errors
ErrorKind::InvalidPercentEncoding; ErrorKind::BufferTooSmall.
Nothing is written on error.
§Examples
let mut buf = [0u8; 8];
assert_eq!(parse_net::pct::decode_into(b"a%2Fb", &mut buf)?, b"a/b");