Struct brotli2::CompressParams
[−]
[src]
pub struct CompressParams { /* fields omitted */ }
Parameters passed to various compression routines.
Methods
impl CompressParams
[src]
fn new() -> CompressParams
[src]
Creates a new default set of compression parameters.
fn mode(&mut self, mode: CompressMode) -> &mut CompressParams
[src]
Set the mode of this compression.
fn quality(&mut self, quality: u32) -> &mut CompressParams
[src]
Controls the compression-speed vs compression-density tradeoffs.
The higher the quality, the slower the compression. Currently the range for the quality is 0 to 11.
fn lgwin(&mut self, lgwin: u32) -> &mut CompressParams
[src]
Sets the base 2 logarithm of the sliding window size.
Currently the range is 10 to 24.
fn lgblock(&mut self, lgblock: u32) -> &mut CompressParams
[src]
Sets the base 2 logarithm of the maximum input block size.
Currently the range is 16 to 24, and if set to 0 the value will be set based on the quality.
fn get_lgblock_readable(&self) -> usize
[src]
Get the current block size
fn get_lgblock(&self) -> u32
[src]
Get the native lgblock size
fn get_lgwin_readable(&self) -> usize
[src]
Get the current window size
fn get_lgwin(&self) -> u32
[src]
Get the native lgwin value
Trait Implementations
impl Clone for CompressParams
[src]
fn clone(&self) -> CompressParams
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more