Crate flate2 [stability]
[-] [+]
[src]
A DEFLATE-based stream compression/decompression library
This library is meant to supplement/replace the standard distributon's libflate library by providing a streaming encoder/decoder rather than purely in in-memory encoder/decoder.
Like with libflate, flate2 is based on miniz.c
Organization
This crate contains mainly of two modules, reader and writer. Each
module contains a number of types used to encode and decode various streams
of data. All types in the writer module work on instances of Writer,
whereas all types in the reader module work on instances of Reader.
Other various types are provided at the top-level of the crate for mangement and dealing with encoders/decoders.
Helper traits
There are two helper traits, provided, FlateReader and FlateWriter.
These provide convenience methods for creating a decoder/encoder out of an
already existing stream to chain construction.
Modules
| read | Types which operate over |
| write | Types which operate over |
Structs
| GzBuilder | A builder structure to create a new gzip Encoder. |
| GzHeader | A structure representing the header of a gzip stream. |
Enums
| Compression | When compressing data, the compression level can be specified by a value in this enum. |
Traits
| FlateReadExt | A helper trait to create encoder/decoders with method syntax. |
| FlateWriteExt | A helper trait to create encoder/decoders with method syntax. |