gzip-header

Crates.iogzip-header
lib.rsgzip-header
version1.0.0
sourcesrc
created_at2017-04-19 09:26:40.09978
updated_at2021-11-10 16:40:01.510406
descriptionA crate for decoding and encoding the header part of gzip files based on the gzip header implementation in the flate2 crate.
homepagehttps://github.com/oyvindln/gzip-header
repositoryhttps://github.com/oyvindln/gzip-header
max_upload_size
id11174
size38,147
(oyvindln)

documentation

https://docs.rs/gzip-header/

README

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.

Currently requires rust 1.32 and newer.

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.

Commit count: 15

cargo fmt