mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
zstd support for tar (can potentially make a PR) #696
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mitchcapper on GitHub (Sep 11, 2025).
I noticed zstd is not supported for tar but this library does include the zstd c# library for a select few other functions.
I was able to work around this fairly easily by just creating the zstd stream myself to pass to the reader factory, but I am not sure if there is a reason not to do something similar in the official code. Given the ability to rewind the sharpcompress stream wrapper and the fact IReader is meant as forward only it would seem like this should work but I don't know the internals of sharpcompress well enough to say if I am missing something. If not happy to do a PR to add zstd as a tar supported format.
Here is my current code: