| zlib-0.3: Compression and decompression in the gzip and zlib formats | Contents | Index |
|
Codec.Compression.Zlib | Portability | portable (H98 + FFI) | Stability | experimental | Maintainer | duncan.coutts@worc.ox.ac.uk |
|
|
|
|
|
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
|
|
compress :: ByteString -> ByteString |
|
compressWith :: CompressionLevel -> ByteString -> ByteString |
|
data CompressionLevel |
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.
|
| Instances | |
|
|
Decompression
|
|
decompress :: ByteString -> ByteString |
|
Produced by Haddock version 0.8 |