Function bzip2_decmpr

Source
pub fn bzip2_decmpr(data: &Vec<u8>) -> Result<Vec<u8>>
Available on crate feature dc only.
Expand description

decompress data with bzip2

ยงexample

let data=std::fs::read("te.bz").unwrap();
let v=decmpr_bzip2(&data);
let s=String::from_utf8(v).unwrap();
println!("{}",s);