klauspost / pgzip

Go parallel gzip (de)compression
MIT License
1.12k stars 77 forks source link

RFC: Consume z.current prepared by Reader.Read in Reader.WriteTo #50

Closed mtrmac closed 2 years ago

mtrmac commented 2 years ago

... to fix missing data when WriteTo is called after Read.


This seems to fix https://github.com/containers/podman/issues/15944 , but I’m not familiar with the codebase and there might well be something important I’m missing.

I suppose I should also add at least some tests; so I’m filing this early to maximize the opportunity for review / feedback.