pub(crate) fn zlib_compress(
    input: &[u8],
    settings: &CompressSettings,
) -> Result<Vec<u8>, Error> {
    let mut v = Vec::new();
    rustimpl::lodepng_zlib_compress(&mut v, input, settings)?;
    Ok(v)
}
/// Compresses data with Zlib.
/// Zlib adds a small header and trailer around the deflate data.
/// The data is output in the format of the zlib specification.
Compresses data with Zlib.
Zlib adds a small header and trailer around the deflate data.
The data is output in the format of the zlib specification.
Compresses data with Zlib . Zlib adds a small header and trailer around the deflate data . The data is output in the format of the zlib specification .
pub(crate) fn zlib_compress(
    input: &[u8],
    settings: &CompressSettings,
) -> Result<Vec<u8>, Error> {
    let mut v = Vec::new();
    rustimpl::lodepng_zlib_compress(&mut v, input, settings)?;
    Ok(v)
}
pub ( crate ) fn zlib_compress ( input : & [ u8 ] , settings : & CompressSettings , ) -> Result < Vec < u8 > , Error > { let mut v = Vec :: new ( ) ; rustimpl :: lodepng_zlib_compress ( & mut v , input , settings ) ? ; Ok ( v ) }
Compresses data with Zlib.
Compresses data with Zlib .
input
&[u8]
settings
&CompressSettings