[−][src]Function lzma::compress
pub fn compress(buf: &[u8], preset: u32) -> Result<Vec<u8>, LzmaError>
Compress buf
and return the result.
preset is [0-9] and corresponds to xz's presets. Binary-or with EXTREME_PRESET for --extreme (e.g. 9 | EXTREME_PRESET).