zlib_version

zlib_version() Class Public methods Returns the string which represents the version of zlib library.

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

deflate

Zlib.deflate(string[, level])Zlib::Deflate.deflate(string[, level]) Class Public methods Compresses the given string. Valid values of level are Zlib::NO_COMPRESSION, Zlib::BEST_SPEED, Zlib::BEST_COMPRESSION, Zlib::DEFAULT_COMPRESSION, or an integer from 0 to 9 (the default is 6). This method is almost equivalent to the following code: def deflate(string, level) z = Zlib::Deflate.new(level) dst = z.deflate(string, Zlib::FINISH) z.close dst end See also ::inflate

crc_table

crc_table() Class Public methods Returns the table for calculating CRC checksum as an array.

crc32_combine

Zlib.crc32_combine(crc1, crc2, len2) Class Public methods Combine two CRC-32 check values in to one. crc1 is the first CRC-32 value, crc2 is the second CRC-32 value. len2 is the length of the string used to generate crc2.

crc32

Zlib.crc32(string, crc) Class Public methods Calculates CRC checksum for string, and returns updated value of crc. If string is omitted, it returns the CRC initial value. If crc is omitted, it assumes that the initial value is given to crc. FIXME: expression.

adler32_combine

Zlib.adler32_combine(adler1, adler2, len2) Class Public methods Combine two Adler-32 check values in to one. alder1 is the first Adler-32 value, adler2 is the second Adler-32 value. len2 is the length of the string used to generate adler2.

adler32

Zlib.adler32(string, adler) Class Public methods Calculates Adler-32 checksum for string, and returns updated value of adler. If string is omitted, it returns the Adler-32 initial value. If adler is omitted, it assumes that the initial value is given to adler. FIXME: expression.

total_out

total_out() Instance Public methods Returns the total bytes of the output data from the stream. FIXME

total_in

total_in() Instance Public methods Returns the total bytes of the input data to the stream. FIXME