mcmilk / zstdmt

Multithreading Library for Brotli, Lizard, LZ4, LZ5, Snappy and Zstandard
Other
181 stars 33 forks source link

Checksum #32

Closed tansy closed 1 month ago

tansy commented 4 months ago

Is it possible to add checksum to the archive? At least optionally.

mcmilk commented 1 month ago

There is no archive, only some compressed file.

tansy commented 1 month ago

Ok, archive ≈ compressed file.

That's not what I meant. Zstd adds checksum (xxh64) to files it produces, zstd-mt desn't. I was asking how to do that? I tried to study their compressor but it's kinda 'convoluted' - calculating checksum is automagical and hidden behind layers of abstraction I don't follow. They seem to use some new API? But I don't follow, so I couldn't get, not to mention replicate it. But it can be done, without calculating it 'manually'.