Skip to content

Add Ppmd8Encoder::get_ref/get_mut.#10

Merged
hasenbanck merged 1 commit intohasenbanck:mainfrom
roblabla:getrefgetmut
Nov 2, 2025
Merged

Add Ppmd8Encoder::get_ref/get_mut.#10
hasenbanck merged 1 commit intohasenbanck:mainfrom
roblabla:getrefgetmut

Conversation

@roblabla
Copy link
Contributor

These allow accessing the underlying writer, which can be useful to read out the underlying state, for instance to send it out.

In my case, I need to deflate to a Vec, that will be periodically (after some writes) sent out and replaced. We have to work this way due to API constraints.

Most of the compression crates out there already offer support for getting the underlying writer (bzip2, zstd, flate2).

@hasenbanck
Copy link
Owner

Oh, sorry, I didn't get notifications about your PR. Thank your for your work! I will release a version with this API change later.

@hasenbanck hasenbanck merged commit 7d7dc55 into hasenbanck:main Nov 2, 2025
13 of 14 checks passed
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