Zlib
js.node.events.EventEmitter → js.node.Stream → js.node.stream.Readable → js.node.stream.Duplex → js.node.stream.Transform → js.node.zlib.Zlib (extern class) → Deflate, DeflateRaw, Gunzip, Gzip, Inflate, InflateRaw, Unzip
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 |
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.