pub struct CParameter(/* private fields */);async_compression_unstable and crate feature zstd-mzstd only.Expand description
A compression parameter for the mzstd backend. This is a stable wrapper around mzstd’s own
encoder configuration, to abstract over different versions of the mzstd library.
As with the zstd backend, a value of 0 selects the default for the parameter, and the last
value given for a parameter wins.
See the zstd documentation for more information on these parameters.
Implementations§
Source§impl CParameter
impl CParameter
pub fn quality(level: Level) -> i32
Sourcepub fn window_log(value: u32) -> CParameter
pub fn window_log(value: u32) -> CParameter
Window size in bytes (as a power of two)
Sourcepub fn hash_log(value: u32) -> CParameter
pub fn hash_log(value: u32) -> CParameter
Size of the initial probe table in 4-byte entries (as a power of two)
Sourcepub fn chain_log(value: u32) -> CParameter
pub fn chain_log(value: u32) -> CParameter
Size of the multi-probe table in 4-byte entries (as a power of two)
Sourcepub fn search_log(value: u32) -> CParameter
pub fn search_log(value: u32) -> CParameter
Number of search attempts (as a power of two)
Sourcepub fn min_match(value: u32) -> CParameter
pub fn min_match(value: u32) -> CParameter
Minimum size of matches searched for
Sourcepub fn target_length(value: u32) -> CParameter
pub fn target_length(value: u32) -> CParameter
Strategy-dependent length modifier
Sourcepub fn enable_long_distance_matching(value: bool) -> CParameter
pub fn enable_long_distance_matching(value: bool) -> CParameter
Enable long-distance matching mode to look for and emit long-distance references.
This increases the default window size.
Sourcepub fn ldm_hash_log(value: u32) -> CParameter
pub fn ldm_hash_log(value: u32) -> CParameter
Size of the long-distance matching table (as a power of two)
Only used when long-distance matching is explicitly enabled.
Sourcepub fn ldm_min_match(value: u32) -> CParameter
pub fn ldm_min_match(value: u32) -> CParameter
Minimum size of long-distance matches searched for
Only used when long-distance matching is explicitly enabled.
Sourcepub fn ldm_bucket_size_log(value: u32) -> CParameter
pub fn ldm_bucket_size_log(value: u32) -> CParameter
Size of each bucket in the LDM hash table for collision resolution (as a power of two)
Only used when long-distance matching is explicitly enabled.
Sourcepub fn ldm_hash_rate_log(value: u32) -> CParameter
pub fn ldm_hash_rate_log(value: u32) -> CParameter
Frequency of using the LDM hash table (as a power of two)
Only used when long-distance matching is explicitly enabled.
Sourcepub fn content_size_flag(value: bool) -> CParameter
pub fn content_size_flag(value: bool) -> CParameter
Emit the size of the content (default: true).
Sourcepub fn checksum_flag(value: bool) -> CParameter
pub fn checksum_flag(value: bool) -> CParameter
Emit a checksum (default: false).
Trait Implementations§
Source§impl Clone for CParameter
impl Clone for CParameter
Source§fn clone(&self) -> CParameter
fn clone(&self) -> CParameter
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more