Skip to content

Conversation

@fintelia
Copy link
Contributor

@fintelia fintelia commented Jul 20, 2025

The implementation in zlib (called from here) writes the block header and end-code separately, but should otherwise be equivalent.

The logic for partial flushes used to be significantly more complicated, but was simplified in this commit from 2012.

I've confirmed that the output matches other flate2 backends in rust-lang/flate2-rs#498

@oyvindln
Copy link
Collaborator

Thanks

Annoyingly that type is public so in theory I ought to bump the major version again which I really don't want to as it will result in people not updating again like last time but maybe I should just not bother with it since I doubt anyone is actually matching on that enum anyhow.

@oyvindln oyvindln merged commit 2ede365 into Frommi:master Jul 20, 2025
4 of 10 checks passed
@fintelia fintelia deleted the partial-flush branch July 28, 2025 02:23
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.

2 participants