pub fn decode_object(object: Vec<u8>) -> Vec<u8> {
    let mut decoder = ZlibDecoder::new(&object[..]);
    let mut decompressed: Vec<u8> = Vec::new();

    // Assume file is valid
    decoder.read_to_end(&mut decompressed).unwrap();

    decompressed
}
/// Decode/decompress a Zlib compressed byte sequence
Decode/decompress a Zlib compressed byte sequence
Decode / decompress a Zlib compressed byte sequence
pub fn decode_object(object: Vec<u8>) -> Vec<u8> {
    let mut decoder = ZlibDecoder::new(&object[..]);
    let mut decompressed: Vec<u8> = Vec::new();
    // Assume file is valid
    decoder.read_to_end(&mut decompressed).unwrap();
    decompressed
}
pub fn decode_object ( object : Vec < u8 > ) -> Vec < u8 > { let mut decoder = ZlibDecoder :: new ( & object [ .. ] ) ; let mut decompressed : Vec < u8 > = Vec :: new ( ) ; // Assume file is valid decoder . read_to_end ( & mut decompressed ) . unwrap ( ) ; decompressed }
Decode/decompress a Zlib compressed byte sequence
Decode / decompress a Zlib compressed byte sequence
object
Vec<u8>
object
Vec<u8>