Parameters
- level
- Compression level between zero and nine (0-9).
Return Value
Zero on success, an error code on failure.
Compression level 1 gives best speed, 9 gives best compression.
Compression level zero gives no compression at all (the input data is simply copied a block at a time).
The default compression level is 6, which provides a compromise between speed and compression.