Module

Zlib

Inheritance

GZIP_SUPPORT

Classes & Modules

Constants

Name   Description
ASCII = INT2FIX(Z_ASCII)
BEST_COMPRESSION = INT2FIX(Z_BEST_COMPRESSION)
BEST_SPEED = INT2FIX(Z_BEST_SPEED)
BINARY = INT2FIX(Z_BINARY)
DEFAULT_COMPRESSION = INT2FIX(Z_DEFAULT_COMPRESSION)
DEFAULT_STRATEGY = INT2FIX(Z_DEFAULT_STRATEGY)
DEF_MEM_LEVEL = INT2FIX(DEF_MEM_LEVEL)
FILTERED = INT2FIX(Z_FILTERED)
FINISH = INT2FIX(Z_FINISH)
FULL_FLUSH = INT2FIX(Z_FULL_FLUSH)
HUFFMAN_ONLY = INT2FIX(Z_HUFFMAN_ONLY)
MAX_MEM_LEVEL = INT2FIX(MAX_MEM_LEVEL)
MAX_WBITS = INT2FIX(MAX_WBITS)
NO_COMPRESSION = INT2FIX(Z_NO_COMPRESSION)
NO_FLUSH = INT2FIX(Z_NO_FLUSH)
OS_AMIGA = INT2FIX(OS_AMIGA)
OS_ATARI = INT2FIX(OS_ATARI)
OS_CODE = INT2FIX(OS_CODE)
OS_CPM = INT2FIX(OS_CPM)
OS_MACOS = INT2FIX(OS_MACOS)
OS_MSDOS = INT2FIX(OS_MSDOS)
OS_OS2 = INT2FIX(OS_OS2)
OS_QDOS = INT2FIX(OS_QDOS)
OS_RISCOS = INT2FIX(OS_RISCOS)
OS_TOPS20 = INT2FIX(OS_TOPS20)
OS_UNIX = INT2FIX(OS_UNIX)
OS_UNKNOWN = INT2FIX(OS_UNKNOWN)
OS_VMCMS = INT2FIX(OS_VMCMS)
OS_VMS = INT2FIX(OS_VMS)
OS_WIN32 = INT2FIX(OS_WIN32)
OS_ZSYSTEM = INT2FIX(OS_ZSYSTEM)
SYNC_FLUSH = INT2FIX(Z_SYNC_FLUSH)
UNKNOWN = INT2FIX(Z_UNKNOWN)
VERSION = rb_str_new2(RUBY_ZLIB_VERSION)
ZLIB_VERSION = rb_str_new2(ZLIB_VERSION)

Methods

Class

Visibility Signature
public adler32 (...)
public crc32 (...)
public crc_table ()
public zlib_version ()

Class Method Detail

Zlib.adler32(string, adler)

Calculates Alder-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.

Zlib.crc32(string, adler)

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.

crc_table()

Returns the table for calculating CRC checksum as an array.

zlib_version()

Returns the string which represents the version of zlib library.