rust-lang / flate2-rs

DEFLATE, gzip, and zlib bindings for Rust
https://docs.rs/flate2
Apache License 2.0
869 stars 159 forks source link

Move gzip header parsing out of bufread module #346

Closed jongiddy closed 1 year ago

jongiddy commented 1 year ago

Header parsing is used by both bufread and write modules. This removes the dependency of the write module on the bufread module.

This implements part of the change from #323 with the aim to make that PR simpler.

The test of Buffer in bufread would sensibly be moved too, but that would cause conflicts with #345 and the test (along with the Buffer type) are removed by #323