bit7z icon indicating copy to clipboard operation
bit7z copied to clipboard

[Feature Request]: nice api for ArchiveExtractCallback/ISequentialOutStream

Open RScherzer opened this issue 1 year ago • 2 comments

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

RScherzer avatar Feb 17 '23 16:02 RScherzer