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 ::deflate

doc_ruby_on_rails
2015-06-14 23:08:49
Comments
Leave a Comment

Please login to continue.