Class

GioZlibCompressor

Description [src]

final class Gio.ZlibCompressor : GObject.Object {
  /* No available fields */
}

GZlibCompressor is an implementation of GConverter that compresses data using zlib.

Hierarchy

hierarchy this GZlibCompressor implements_0 GConverter this--implements_0 ancestor_0 GObject ancestor_0--this

Ancestors

Implements

Constructors

g_zlib_compressor_new

Creates a new GZlibCompressor.

Available since: 2.24

Instance methods

g_zlib_compressor_get_file_info

Returns the GZlibCompressor:file-info property.

Available since: 2.26

g_zlib_compressor_set_file_info

Sets file_info in compressor. If non-NULL, and compressors GZlibCompressor: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.

Available since: 2.26

Methods inherited from GObject (43)
Methods inherited from GConverter (2)
g_converter_convert

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 inbuf) or both. If its not possible to do any work an error is returned.

Available since: 2.24

g_converter_reset

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.

Available since: 2.24

Properties

Gio.ZlibCompressor:file-info

If set to a non-NULL GFileInfo object, and GZlibCompressor:format is G_ZLIB_COMPRESSOR_FORMAT_GZIP, the compressor will write the file name and modification time from the file info to the GZIP header.

Available since: 2.26

Gio.ZlibCompressor:format
No description available.
Gio.ZlibCompressor:level
No description available.

Signals

Signals inherited from GObject (1)

Class structure

struct GioZlibCompressorClass {
  GObjectClass parent_class;
  
}
Class members
parent_class
GObjectClass
  No description available.