Skip to main content

max_zstd_window_log

Function max_zstd_window_log 

Source
pub fn max_zstd_window_log() -> Option<u32>
Expand description

Returns the zstd window_log_max derived from the global decompressed cap (max_decompressed_size_bytes).

Convenience getter for the common case where the decoder window should track the global cap; use zstd_window_log_max directly when enforcing an explicit, non-global limit (e.g. the HTTP body decompressor’s per-call limit).