## GZlibDecompressor

GZlibDecompressor — Zlib decompressor

## Synopsis

    #include <gio/gio.h>

                        GZlibDecompressor;
    GZlibDecompressor * g_zlib_decompressor_new             (GZlibCompressorFormat format);
    GFileInfo *         g_zlib_decompressor_get_file_info   (GZlibDecompressor *decompressor);

## Object Hierarchy

      GObject
       +----GZlibDecompressor

## Implemented Interfaces

GZlibDecompressor implements GConverter.

## Properties

      "file-info"                GFileInfo*            : Read
      "format"                   GZlibCompressorFormat  : Read / Write / Construct Only

## Description

GZlibDecompressor is an implementation of GConverter that decompresses data compressed with zlib.

## Details

### GZlibDecompressor

    typedef struct _GZlibDecompressor GZlibDecompressor;

Zlib decompression

### g_zlib_decompressor_new ()

    GZlibDecompressor * g_zlib_decompressor_new             (GZlibCompressorFormat format);

Creates a new GZlibDecompressor.

`format` : | The format to use for the compressed data
Returns : | a new GZlibDecompressor

Since 2.24

### g_zlib_decompressor_get_file_info ()

    GFileInfo *         g_zlib_decompressor_get_file_info   (GZlibDecompressor *decompressor);

Retrieves the GFileInfo constructed from the GZIP header data of compressed data processed by `compressor`, or `NULL` if `decompressor`'s "format" property is not `G_ZLIB_COMPRESSOR_FORMAT_GZIP`, or the header data was not fully processed yet, or it not present in the data stream at all.

`decompressor` : | a GZlibDecompressor
Returns : | a GFileInfo, or `NULL`. [transfer none]

Since 2.26

## Property Details

### The `"file-info"` property

      "file-info"                GFileInfo*            : Read

A GFileInfo containing the information found in the GZIP header of the data stream processed, or `NULL` if the header was not yet fully processed, is not present at all, or the compressor's "format" property is not `G_ZLIB_COMPRESSOR_FORMAT_GZIP`.

Since 2.26

### The `"format"` property

      "format"                   GZlibCompressorFormat  : Read / Write / Construct Only

The format of the compressed data.

Default value: G_ZLIB_COMPRESSOR_FORMAT_ZLIB