gio.zlib_compressor

Module for [ZlibCompressor] class

Types 3

[gio.zlib_compressor.ZlibCompressor] is an implementation of [gio.converter.Converter] that compresses data using zlib.

Methods
GType _gType() @property
ZlibCompressor self()Returns `this`, for use in `with` statements.
ZlibCompressorGidBuilder builder()Get builder for [gio.zlib_compressor.ZlibCompressor] Returns: New builder object
gio.file_info.FileInfo fileInfo() @propertyGet `fileInfo` property. Returns: If set to a non-null #GFileInfo object, and #GZlibCompressor:format is [gio.types.ZlibCompressorFormat.Gzip], the compressor will write the file name and modificat...
void fileInfo(gio.file_info.FileInfo propval) @propertySet `fileInfo` property. Params: propval = If set to a non-null #GFileInfo object, and #GZlibCompressor:format is [gio.types.ZlibCompressorFormat.Gzip], the compressor will write the file name and ...
gio.types.ZlibCompressorFormat format() @propertyGet `format` property. Returns: The format of the compressed data.
int level() @propertyGet `level` property. Returns: The level of compression from `0` (no compression) to `9` (most compression). `-1` for the default level.
gio.file_info.FileInfo getFileInfo()Returns the #GZlibCompressor:file-info property. Returns: a #GFileInfo, or null
void setFileInfo(gio.file_info.FileInfo fileInfo = null)Sets file_info in compressor. If non-null, and compressor's #GZlibCompressor:format property is [gio.types.ZlibCompressorFormat.Gzip], it will be used to set the file name and modification time in ...
Constructors
this(void * ptr, Flag!"Take" take)
this(gio.types.ZlibCompressorFormat format, int level)Creates a new #GZlibCompressor.
Methods
T fileInfo(gio.file_info.FileInfo propval)Set `fileInfo` property. Params: propval = If set to a non-null #GFileInfo object, and #GZlibCompressor:format is [gio.types.ZlibCompressorFormat.Gzip], the compressor will write the file name and ...
T format(gio.types.ZlibCompressorFormat propval)Set `format` property. Params: propval = The format of the compressed data. Returns: Builder instance for fluent chaining
T level(int propval)Set `level` property. Params: propval = The level of compression from `0` (no compression) to `9` (most compression). `-1` for the default level. Returns: Builder instance for fluent chaining

Fluent builder for [gio.zlib_compressor.ZlibCompressor]