Can I partition the compressed file and read it in chunks or does the compression format encode whole file
The format allows multiple frames to be appended.
They will be regenerated in the same order, as if it was a single content.
So yes, it makes it possible to cut files into chunks of any size.
You can break the original file up into chunks, compress each chunk independently into a Zstandard frame (using the zstd CLI), and concatenate each frame. This will still be valid in the eyes of the Zstandard format. You will then be able to break the compressed file up into the component frame and decompress each frame independently.
The only problem is that Zstandard doesn't encode the size of each frame, only the size of each block. So to find where the next frame starts you will have to do one of two things:
Cod
Issue merged into #395
Most helpful comment
You can break the original file up into chunks, compress each chunk independently into a Zstandard frame (using the
zstdCLI), and concatenate each frame. This will still be valid in the eyes of the Zstandard format. You will then be able to break the compressed file up into the component frame and decompress each frame independently.The only problem is that Zstandard doesn't encode the size of each frame, only the size of each block. So to find where the next frame starts you will have to do one of two things: