Skip to content
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 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0