Struct brotli2::CompressParams [−][src]
pub struct CompressParams { /* fields omitted */ }
Parameters passed to various compression routines.
Methods
impl CompressParams
[src]
impl CompressParams
pub fn new() -> CompressParams
[src]
pub fn new() -> CompressParams
Creates a new default set of compression parameters.
pub fn mode(&mut self, mode: CompressMode) -> &mut CompressParams
[src]
pub fn mode(&mut self, mode: CompressMode) -> &mut CompressParams
Set the mode of this compression.
pub fn quality(&mut self, quality: u32) -> &mut CompressParams
[src]
pub fn quality(&mut self, quality: u32) -> &mut CompressParams
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.
pub fn lgwin(&mut self, lgwin: u32) -> &mut CompressParams
[src]
pub fn lgwin(&mut self, lgwin: u32) -> &mut CompressParams
Sets the base 2 logarithm of the sliding window size.
Currently the range is 10 to 24.
pub fn lgblock(&mut self, lgblock: u32) -> &mut CompressParams
[src]
pub fn lgblock(&mut self, lgblock: u32) -> &mut CompressParams
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.
pub fn get_lgblock_readable(&self) -> usize
[src]
pub fn get_lgblock_readable(&self) -> usize
Get the current block size
pub fn get_lgblock(&self) -> u32
[src]
pub fn get_lgblock(&self) -> u32
Get the native lgblock size
pub fn get_lgwin_readable(&self) -> usize
[src]
pub fn get_lgwin_readable(&self) -> usize
Get the current window size
pub fn get_lgwin(&self) -> u32
[src]
pub fn get_lgwin(&self) -> u32
Get the native lgwin value
Trait Implementations
impl Clone for CompressParams
[src]
impl Clone for CompressParams
fn clone(&self) -> CompressParams
[src]
fn clone(&self) -> CompressParams
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for CompressParams
[src]
impl Debug for CompressParams
Auto Trait Implementations
impl Send for CompressParams
impl Send for CompressParams
impl Sync for CompressParams
impl Sync for CompressParams