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

Fixing issue with multigz encodings #2

Merged
merged 1 commit into from Dec 13, 2022

Conversation

NatPRoach
Copy link
Contributor

As it turns out gzip files with multiple gzip blocks (e.g. bgzipped files) the current choice of flate2 decoding will only decode the first block as currently written in fgoxide.
Switching to MultiGzDecoder fixes this and will allow this to work on large bgzipped files.

See documentation below:
https://docs.rs/flate2/latest/flate2/read/struct.GzDecoder.html
https://docs.rs/flate2/latest/flate2/read/struct.MultiGzDecoder.html

@tfenne tfenne merged commit 57dd407 into main Dec 13, 2022
@tfenne tfenne deleted the bugfix/allow_for_multigz_encodings branch December 13, 2022 17:57
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

Successfully merging this pull request may close these issues.

None yet

2 participants