mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
Question: Does this have 7zip reader? #652
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 @0x5bfa on GitHub (Aug 22, 2024).
I'm finding a room to implement 7zip writer using managed-lzma and during walking through the code base I found 7zip reader while FORMATS.md says N/A
Code was added intially 11 years ago but the table of FORMATS.md updated 2 years ago.
8de33f0db3/src/SharpCompress/Archives/SevenZip/SevenZipArchive.cs (L202-L254)8de33f0db3/FORMATS.md (L21)7zip reader exists or still missing?
@adamhathcock commented on GitHub (Aug 22, 2024):
There is no 7ZipReader interface becase 7Zip doesn't support forward only. It requires random access to the stream which is against the reader interface. Internally, 7Zip is made of streams that are forward only
@0x5bfa commented on GitHub (Aug 23, 2024):
Thanks for the reply and understood.
I have a couple of questions:
I have been looking for alternative to SevenZipSharp as it is slow to integrate in order to use files-community/Files. This looks great and I'd like to contribute 7zip parts.
managed-lzma reader and writer impl:
https://github.com/weltkante/managed-lzma/tree/master/shared/SevenZip
@adamhathcock commented on GitHub (Sep 2, 2024):
I believe we still use the managed LZMA internally. I don't want native dependencies.
I don't believe anything supports forward only always because it's against the 7Zip spec. Which is why it's il-suited, imo. 7Zip always wants random access which usually means a file.
@0x5bfa commented on GitHub (Nov 14, 2024):
I see.