Skip to content

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

instance method

Zlib::Deflate#params

(::Zlib::Deflate::compression_level level, ::Integer strategy) -> void
params(level, strategy)

Changes the parameters of the deflate stream to allow changes between different types of data that require different types of compression. Any unprocessed data is flushed before changing the params.

See Zlib::Deflate.new for a description of level and strategy.

See also #initialize_copy #set_dictionary #flush also in 4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0