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

Read encoder examples should use read_to_end #355

Closed markgoddard closed 1 year ago

markgoddard commented 1 year ago

The examples for the Read encoders use the read method to read data. However, as pointed out in this issue, this may only read part of the data. Instead the read_to_end method should be used.