close

close() Instance Public methods Closes the stream. All operations on the closed stream will raise an exception.

avail_out=

avail_out=(p1) Instance Public methods Allocates size bytes of free space in the output buffer. If there are more than size bytes already in the buffer, the buffer is truncated. Because free space is allocated automatically, you usually don't need to use this method.

avail_out

avail_out() Instance Public methods Returns number of bytes of free spaces in output buffer. Because the free space is allocated automatically, this method returns 0 normally.

avail_in

avail_in() Instance Public methods Returns bytes of data in the input buffer. Normally, returns 0.

adler

adler() Instance Public methods Returns the adler-32 checksum.

sync_point?

sync_point?() Instance Public methods Quoted verbatim from original documentation: What is this? :)

sync

sync(string) Instance Public methods 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.

set_dictionary

set_dictionary(p1) Instance Public methods Sets the preset dictionary and returns string. This method is available just only after a Zlib::NeedDict exception was raised. See zlib.h for details.

inflate 2

inflate(deflate_string) â Stringinflate(deflate_string) { |chunk| ... } â nil Instance Public methods Inputs deflate_string into the inflate stream and returns the output from the stream. Calling this method, both the input and the output buffer of the stream are flushed. If string is nil, this method finishes the stream, just like Zlib::ZStream#finish. If a block is given consecutive inflated chunks from the deflate_string are yielded to the block and nil is ret

add_dictionary

add_dictionary(string) Instance Public methods Provide the inflate stream with a dictionary that may be required in the future. Multiple dictionaries may be provided. The inflate stream will automatically choose the correct user-provided dictionary based on the stream's required dictionary.