GZlibCompressor
GZlibCompressor — Zlib compressor
|
|
Object Hierarchy
GEnum
╰── GZlibCompressorFormat
GObject
╰── GZlibCompressor
Implemented Interfaces
GZlibCompressor implements
GConverter.
Includes
#include <gio/gio.h>
Functions
g_zlib_compressor_set_file_info ()
void
g_zlib_compressor_set_file_info (GZlibCompressor *compressor,
GFileInfo *file_info);
Sets file_info
in compressor
. If non-NULL, and compressor
's
“format” property is G_ZLIB_COMPRESSOR_FORMAT_GZIP,
it will be used to set the file name and modification time in
the GZIP header of the compressed data.
Note: it is an error to call this function while a compression is in
progress; it may only be called immediately after creation of compressor
,
or after resetting it with g_converter_reset().
Since: 2.26
Types and Values
GZlibCompressor
typedef struct _GZlibCompressor GZlibCompressor;
Zlib decompression
Property Details
The “format” property
“format” GZlibCompressorFormat
The format of the compressed data.
Owner: GZlibCompressor
Flags: Read / Write / Construct Only
Default value: G_ZLIB_COMPRESSOR_FORMAT_ZLIB
The “level” property
“level” gint
The level of compression from 0 (no compression) to 9 (most compression), -1 for the default level.
Owner: GZlibCompressor
Flags: Read / Write / Construct Only
Allowed values: [-1,9]
Default value: -1