zlib-0.4.0.2: Compression and decompression in the gzip and zlib formats

Portabilityportable (H98 + FFI)
Stabilityprovisional
Maintainerduncan.coutts@worc.ox.ac.uk

Codec.Compression.Zlib

Contents

Description

Compression and decompression of data streams in the zlib format.

The format is described in detail in RFC #1950: http://www.ietf.org/rfc/rfc1950.txt

See also the zlib home page: http://zlib.net/

Synopsis

Compression

data CompressionLevel Source

Control amount of compression. This is a trade-off between the amount of compression and the time and memory required to do the compression.

Constructors

DefaultCompression

The default compression level is 6 (that is, biased towards high compression at expense of speed).

NoCompression

No compression, just a block copy.

BestSpeed

The fastest compression method (less compression)

BestCompression

The slowest compression method (best compression).

CompressionLevel Int

A specific compression level between 1 and 9.

Decompression