It derives from <GObject>.
<GZlibCompressor> is an implementation of
<GConverter> that compresses data using zlib.
A <GFileInfo> containing file information to put
into the gzip header.
The file name and modification time from the file info will be used.
This will only be used if non-NULL and zlib-compressor:format is
Gio.ZlibCompressorFormat.GZIP.
Its value is a <GFileInfo>, or #f.
Set it with (set! (zlib-compressor:file-info self) value).
The format of the compressed data.
Its value is a
<GZlibCompressorFormat> (or, to set
it, one of its symbols).
It can only be set when the object is made, with #:format.
The level of compression from 0 (no compression) to 9
(most compression).
-1 for the default level.
Its value is a 32-bit integer.
It can only be set when the object is made, with #:level.
The OS code of the gzip header.
This will be used if set to a non-negative value, and if
zlib-compressor:format is
Gio.ZlibCompressorFormat.GZIP, the compressor will set the OS
code of the gzip header to this value.
If the value is unset, zlib will set the OS code depending on the
platform. This may be undesirable when reproducible output is desired.
In that case setting the OS code to 3 (for Unix) is recommended.
Its value is a 32-bit integer.
Set it with (set! (zlib-compressor:os self) value).
Gets the zlib-compressor:file-info property.
Passed: a <GZlibCompressor>.
a compressor
Returned: a <GFileInfo>, or #f.
file info for the gzip header, if set
Gets the zlib-compressor:os
property.
Passed: a <GZlibCompressor>.
a compressor
Returned: a 32-bit integer.
the previously set OS value, or -1 if unset
Creates a compressor.
Passed: a <GZlibCompressorFormat>, or
one of its symbols.
the format to use for the compressed data
Passed: a 32-bit integer.
compression level (0-9), -1 for default
Returned: a <GZlibCompressor>.
a new <GZlibCompressor>
Sets the zlib-compressor:file-info property.
Note: it is an error to call this function while a compression is in
progress; it may only be called immediately after creation of
self, or after resetting it with converter:reset.
Passed: a <GZlibCompressor>.
a compressor
Passed, or left out: a <GFileInfo>, or #f.
file info for the gzip header
Sets the zlib-compressor:os
property.
Note: it is an error to call this function while a compression is in
progress; it may only be called immediately after creation of
self, or after resetting it with converter:reset.
Passed: a <GZlibCompressor>.
a compressor
Passed: a 32-bit integer.
the OS code to use, or -1 to unset