#gzip #compression

gzip-header

A crate for decoding and encoding the header part of gzip files based on the gzip header implementation in the flate2 crate

5 unstable releases

0.3.0 Jun 24, 2019
0.2.0 Aug 9, 2017
0.1.2 Jul 25, 2017
0.1.1 May 21, 2017
0.1.0 Apr 19, 2017

#26 in Compression

Download history 1499/week @ 2019-07-19 1868/week @ 2019-07-26 1453/week @ 2019-08-02 1495/week @ 2019-08-09 1297/week @ 2019-08-16 1594/week @ 2019-08-23 1553/week @ 2019-08-30 2137/week @ 2019-09-06 2433/week @ 2019-09-13 2239/week @ 2019-09-20 1918/week @ 2019-09-27 2098/week @ 2019-10-04 2081/week @ 2019-10-11 2306/week @ 2019-10-18 1766/week @ 2019-10-25

5,536 downloads per month
Used in 9 crates (1 directly)

MIT/Apache

26KB
530 lines

gzip-header

A library to decode and encode headers for the gzip format. The library also contains a reader absctraction over a CRC checksum hasher.

A file in the gzip format contains a gzip header, a number of compressed data blocks in the DEFLATE format, and ends with the CRC32-checksum (in the IEEE format) and number of bytes (modulo 2^32) of the uncompressed data.

The gzip header is purely a set of metadata, and doesn't have any impact on the decoding of the compressed data other than the fact that DEFLATE-encoded data with a gzip-header is checked using the CRC32 algorithm.

This library is based on the gzip header functionality in the flate2 crate.

License

Like the non-C parts of flate2-rs, gzip-header is distributed under the terms of both the MIT license and the Apache License (Version 2.0),

See LICENSE-APACHE, and LICENSE-MIT for details.


lib.rs:

A library to decode and encode headers for the gzip format. The library also contains a reader absctraction over a CRC checksum hasher.

A file in the gzip format contains a gzip header, a number of compressed data blocks in the DEFLATE format, and ends with the CRC32-checksum (in the IEEE format) and number of bytes (modulo 2^32) of the uncompressed data.

The gzip header is purely a set of metadata, and doesn't have any impact on the decoding of the compressed data other than the fact that DEFLATE-encoded data with a gzip-header is checked using the CRC32 algorithm.

This library is based on the gzip header functionality in the flate2 crate.

Dependencies

~79KB