Creates a new
compressor. If non-
GZlibCompressor:format property is
it will be used to set the file name and modification time in
the GZIP header of the compressed data.
Methods inherited from GConverter (2)
This is the main operation used when converting data. It is to be called
multiple times in a loop, and each time it will do some work, i.e.
producing some output (in
outbuf) or consuming some input (from
both. If its not possible to do any work an error is returned.
Resets all internal state in the converter, making it behave as if it was just created. If the converter has any internal state that would produce output then that output is lost.
If set to a non-
GFileInfo object, and
G_ZLIB_COMPRESSOR_FORMAT_GZIP, the compressor will write the file name
and modification time from the file info to the GZIP header.