Skip to content
Andrew Lambert edited this page Dec 8, 2022 · 21 revisions

zlib

Module declaration

 Protected Module zlib

Remarks

Contains all methods, properties, classes, etc. relating to zlib.

Classes

Methods

Constants

Stream encoding

Used in creating or opening a compressed stream to indicate the type of stream.

  • DEFLATE_ENCODING Deflated data in a zlib wrapper.
  • GZIP_ENCODING Deflated data in a gzip wrapper.
  • RAW_ENCODING Deflated data with no wrapper.
  • Z_DETECT Try them all.

Compression level

Used in creating a compressed stream to indicate the compression level.

  • Z_BEST_COMPRESSION=9
  • Z_BEST_SPEED=1
  • Z_DEFAULT_COMPRESSION=-1 (equivalent to level 6)
  • Z_NO_COMPRESSION=0

Compression strategies

Used in creating a compressed stream to indicate the compression strategy. See: Deflater.Strategy

  • Z_DEFAULT_STRATEGY
  • Z_FILTERED
  • Z_FIXED
  • Z_HUFFMAN_ONLY
  • Z_RLE

Flush modes

Used in writing a compressed stream to indicate whether and how pending output should be flushed. See: Deflater.Deflate

  • Z_FINISH
  • Z_BLOCK
  • Z_FULL_FLUSH
  • Z_NO_FLUSH
  • Z_PARTIAL_FLUSH
  • Z_SYNC_FLUSH
  • Z_TREES

Datatype guesses

Indicates zlib's guess as to the kind of data being processed. See: Deflater.DataType

  • Z_ASCII
  • Z_BINARY
  • Z_TEXT
  • Z_UNKNOWN

Miscellaneous

Entry-level points of interest denoted by "☜"



Clone this wiki locally