Deflater
Deflate using Kotlin/Native's built-in zlib bindings. This uses the raw deflate format and omits the zlib header and trailer, and does not compute a check value.
Note that you must set flush to Z_FINISH before the last call to process. (It is okay to call process() when the source is exhausted.)
See also, the zlib manual.