Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add method to get current position for GzDecoder #328

Open
alexnivanov opened this issue Nov 24, 2022 · 1 comment
Open

Add method to get current position for GzDecoder #328

alexnivanov opened this issue Nov 24, 2022 · 1 comment

Comments

@alexnivanov
Copy link

Greetings!

It would be very nice to have a method to get the current position in compressed file: this way it's possible to calculate/display progress of file processing since we know the size of compressed file, not the uncompressed.

This is what gzoffset does in zlib C library.

@hut8
Copy link

hut8 commented Oct 10, 2023

Wouldn't you also know the size of the uncompressed file if you added a "footer" function? That should have the CRC as well as the uncompressed size.

Edit: looks like that's only going to be the size modulo 2^32 ☹️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants