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 _getGType() static nothrow
GType _gType() @property nothrow
ZlibCompressor self() nothrowReturns `this`, for use in `with` statements.
ZlibCompressorGidBuilder builder() static nothrowGet builder for [gio.zlib_compressor.ZlibCompressor] Returns: New builder object
gio.file_info.FileInfo fileInfo() @property nothrowGet `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) @property nothrowSet `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() @property nothrowGet `format` property. Returns: The format of the compressed data.
int level() @property nothrowGet `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() nothrowReturns the #GZlibCompressor:file-info property. Returns: a #GFileInfo, or null
void setFileInfo(gio.file_info.FileInfo fileInfo = null) nothrowSets 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.

Fluent builder implementation template for gio.zlib_compressor.ZlibCompressor

Methods
T fileInfo(gio.file_info.FileInfo propval) nothrowSet `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) nothrowSet `format` property. Params: propval = The format of the compressed data. Returns: Builder instance for fluent chaining
T level(int propval) nothrowSet `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
Methods
ZlibCompressor build() nothrowCreate object from builder. Returns: New object