Struct brotli2::CompressParams[][src]

pub struct CompressParams { /* fields omitted */ }

Parameters passed to various compression routines.

Methods

impl CompressParams
[src]

Creates a new default set of compression parameters.

Set the mode of this compression.

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.

Sets the base 2 logarithm of the sliding window size.

Currently the range is 10 to 24.

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.

Get the current block size

Get the native lgblock size

Get the current window size

Get the native lgwin value

Trait Implementations

impl Clone for CompressParams
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for CompressParams
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for CompressParams

impl Sync for CompressParams