Zlib

Not exported by the zlib module. It is documented here because it is the base class of the compressor/decompressor classes.

Instance Members

flush(callback: Function): Void

Flush pending data.

kind defaults to Zlib.Z_FULL_FLUSH.

Don't call this frivolously, premature flushes negatively impact the effectiveness of the compression algorithm.

Name Type
callback Function

params(level: Int, strategy: Int, callback: Function): Void

Dynamically update the compression level and compression strategy. Only applicable to deflate algorithm.

Name Type
level Int
strategy Int
callback Function

reset(): Void

Reset the compressor/decompressor to factory defaults. Only applicable to the inflate and deflate algorithms.