Gio.ZlibCompressor.new

function new(format: Gio.ZlibCompressorFormat, level: Number(gint)): Gio.ZlibCompressor {
    // Gjs wrapper for g_zlib_compressor_new()
}
  

Creates a new Gio.ZlibCompressor.

Since 2.24

format

The format to use for the compressed data

level

compression level (0-9), -1 for default

Returns

a new Gio.ZlibCompressor