gi-gio-2.0.14: Gio bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Objects.ZlibCompressor

Contents

Description

Zlib decompression

Synopsis

Exported types

Methods

getFileInfo

zlibCompressorGetFileInfo Source #

Arguments

:: (HasCallStack, MonadIO m, IsZlibCompressor a) 
=> a

compressor: a ZlibCompressor

-> m FileInfo

Returns: a FileInfo, or Nothing

Returns the ZlibCompressor:file-info property.

Since: 2.26

new

zlibCompressorNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ZlibCompressorFormat

format: The format to use for the compressed data

-> Int32

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

-> m ZlibCompressor

Returns: a new ZlibCompressor

Creates a new ZlibCompressor.

Since: 2.24

setFileInfo

zlibCompressorSetFileInfo Source #

Arguments

:: (HasCallStack, MonadIO m, IsZlibCompressor a, IsFileInfo b) 
=> a

compressor: a ZlibCompressor

-> Maybe b

fileInfo: a FileInfo

-> m () 

Sets fileInfo in compressor. If non-Nothing, and compressor's ZlibCompressor:format property is ZlibCompressorFormatGzip, it will be used to set the file name and modification time in the GZIP header of the compressed data.

Note: it is an error to call this function while a compression is in progress; it may only be called immediately after creation of compressor, or after resetting it with converterReset.

Since: 2.26

Properties

fileInfo

format

level