Skip to content

Gio.ZlibDecompressor

class — extends GObject.Object, Converter

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

Constructors

new

@classmethod
def new(cls, format: ZlibCompressorFormat | int) -> ZlibDecompressor

Creates a new decompressor.

Parameters:

  • format — the format to use for the compressed data

Methods

get_file_info

def get_file_info(self) -> FileInfo | None

Gets the ZlibDecompressor.file-info property.

Properties

file_info

file_info: FileInfo  # read-only

A FileInfo containing the information found in the gzip header of the data stream processed.

This will be NULL if the header was not yet fully processed, is not present at all, or the compressor’s ZlibDecompressor.format property is not ZlibCompressorFormat.GZIP.

format

format: ZlibCompressorFormat | int  # read/write

The format of the compressed data.