Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Zlib::Inflate#sync

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.4 · 3.3 · 3.2 · 3.1