new

Zlib::Inflate.new(window_bits = Zlib::MAX_WBITS) Class Public methods Creates a new inflate stream for decompression. window_bits sets the size of the history buffer and can have the following values: 0 Have inflate use the window size from the zlib header of the compressed stream. (8..15) Overrides the window size of the inflate header in the compressed stream. The window size must be greater than or equal to the window size of the compressed stream. Greater than 15 Add 3

<<

<<(p1) Instance Public methods Same as IO.

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.

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

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.

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.

sync_point?

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

adler

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

avail_in

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

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.