Skip to content

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

instance method

Zlib::Inflate#sync

(::String string) -> bool
sync(string)

Inputs string into the end of input buffer and skips data until a full flush point can be found. If the point is found in the buffer, this method flushes the buffer and returns false. Otherwise it returns true and the following data of full flush point is preserved in the buffer.

See also #set_dictionary #sync_point? #inflate also in 4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0