create
Creates a streaming compressor.
Parameters
The compression algorithm to use.
The compression level.
Strategy for allocating output buffers.
Size of output buffers (default 32KB).
The zlib window size (log2 of the LZ77 window size). When 0 (the default), uses the algorithm's default: 15 for Deflate/Zlib, -15 for Raw, 31 for Gzip. When non-zero, the value is passed directly to deflateInit2(). Valid range depends on the algorithm. Note: JVM's java.util.zip.Deflater does not support custom window sizes; this parameter is ignored on JVM.
Creates a streaming decompressor.
Parameters
The compression algorithm to use.
Strategy for allocating output buffers.
Size of output buffers (default 32KB).
Optional hint for expected decompressed size. Used to pre-allocate buffers.
Creates a suspending streaming compressor. Required for browser JavaScript which only supports async CompressionStream.
Creates a suspending streaming decompressor.
Linux streaming compressor factory using z_stream for true incremental compression.
Linux streaming decompressor factory using z_stream for true incremental decompression.