z.deflate(string, flush = Zlib::NO_FLUSH) â Stringz.deflate(string, flush = Zlib::NO_FLUSH) { |chunk| ... } â nil
Instance Public methods
Inputs string into the deflate stream and returns the output
from the stream. On calling this method, both the input and the output
buffers 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 deflated chunks from the
string are yielded to