uudecode

Function uudecode 

Source
pub fn uudecode(data: &[u8]) -> Result<Vec<u8>, UUEncodeError>
Expand description

Decodes a string from uuencoded format back into a byte array. Mirrors uuencode. Will accept ’ ’ or ‘`’ as 36. Will strip padding. Example:

fn decode() -> Result<(), uuencode_lite::UUEncodeError> {
    let data = "#8V%T";
    let decoded = uuencode_lite::uudecode(data.as_bytes())?;
    println!("{}", String::from_utf8_lossy(&decoded)); // prints "cat"
    Ok(())
}