inflate

Zlib.inflate(string)
Zlib::Inflate.inflate(string)
Class Public methods

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

This method is almost equivalent to the following code:

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

See also Zlib.deflate

doc_ruby_on_rails
2015-06-14 19:23:04
Comments
Leave a Comment

Please login to continue.