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
[Feature Request]: nice api for ArchiveExtractCallback/ISequentialOutStream #122
Comments
Hi!
I think it would be a great feature indeed, I will definitely add it to the library.
Yeah, I need to find out the best API for providing the feature. I consider the v4.0 feature complete, so I'll probably add this feature to the next v4.1. |
I've implemented it myself already (not worth or already nice enough for a pull request). Generally I've added 2 callbacks to bitAbstractArchiveHandler
So when I want to calculate a sha1 from a single compressed file, I set up the 2 callbacks. As I said...not yet in an api-nice way, but functional ;-) Having the stream-replace callback I will be able to solve my "give the decompressed files different names", too. Thanks for your support! |
Feature description
Would be great if there would be an easy, clean interface in 4.x for adding a callback which is able to work on the currently decompressed block of data, so you can e.g. calculate the sha1 hash value of a file while it is being decompressed blockwise to memory.
In 7z sdk theory this is an archive Extract call in test mode with ArchiveExtractCallback + ISequentialOutStream specified which inits the hash calculation, doing the hash update during the streams write calls and finalizing the hash when the extractcallback does its SetOperationResult.
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: