Skip to content
class method

Zlib::Inflate.inflate

(::string string) -> ::String
Zlib.inflate(string)
Zlib::Inflate.inflate(string)

Decompresses string. Raises a Zlib::NeedDict exception if a preset dictionary is needed for decompression.

This method is almost equivalent to the following code:

Example
def inflate(string)
  zstream = Zlib::Inflate.new
  buf = zstream.inflate(string)
  zstream.finish
  zstream.close
  buf
end

See also Zlib.deflate

See also #inflate .new #<< also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0