Gio.ZlibCompressor.new
Description: Reference for Gio.ZlibCompressor.new

### Constructor

# Gio ZlibCompressornew

since: 2.24

#### Declaration [src]

    GZlibCompressor*
    g_zlib_compressor_new (
      GZlibCompressorFormat format,
      int level
    )

#### Description [src]

Creates a compressor.

Available since: 2.24

#### Parameters

`format`

  Type: `GZlibCompressorFormat`

  The format to use for the compressed data.

`level`

  Type: `int`

  Compression level (`0`-`9`), `-1` for default.

#### Return value

Type: `GZlibCompressor`

A new `GZlibCompressor`.

The caller of the function takes ownership of the data, and is responsible for freeing it.