pub(crate) fn zlib_compress(
    inp: &[u8],
    settings: &CompressSettings,
) -> Result<Vec<u8>, Error> {
    let mut out = Vec::new();
    lodepng_zlib_compress(&mut out, inp, settings)?;
    Ok(out)
}
/* compress using the default or custom zlib function */
compress using the default or custom zlib function
compress using the default or custom zlib function
pub(crate) fn zlib_compress(
    inp: &[u8],
    settings: &CompressSettings,
) -> Result<Vec<u8>, Error> {
    let mut out = Vec::new();
    lodepng_zlib_compress(&mut out, inp, settings)?;
    Ok(out)
}
pub ( crate ) fn zlib_compress ( inp : & [ u8 ] , settings : & CompressSettings , ) -> Result < Vec < u8 > , Error > { let mut out = Vec :: new ( ) ; lodepng_zlib_compress ( & mut out , inp , settings ) ? ; Ok ( out ) }
compress using the default or custom zlib function
compress using the default or custom zlib function
inp
&[u8]
settings
&CompressSettings