Defined options on output streams are:
- format(+Format)
- Either
deflate
(default),raw_deflate
orgzip
. Thedeflate
envelope is simple and short and is typically used for compressed (network) communication. Theraw_deflate
does not include an envelope and is often used as a step in crypographic encodings. Thegzip
envelope is compatible to the gzip program and intended to read/write compressed files. - level(+Level)
- Number between 0 and 9, specifying the compression level, Higher levels use more resources. Default is 6, generally believed to be a good compromise between speed, memory requirement and compression.
- multi_part(+Boolean)
- If
true
, restart reading if the input is not at end-of-file. The default istrue
for gzip streams.
Generic options are:
- close_parent(Bool)
- If
true
(default), closing the compressed stream also closes (and thus invalidates) the wrapped stream. Iffalse
, the wrapped stream is not closed. This can be used to read/write a compressed data block as partial input/output on a stream.