mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-04 05:25:00 +00:00
[PR #1117] [MERGED] Change ArchiveEncoding to interface. #1547
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?
📋 Pull Request Information
Original PR: https://github.com/adamhathcock/sharpcompress/pull/1117
Author: @adamhathcock
Created: 1/7/2026
Status: ✅ Merged
Merged: 1/8/2026
Merged by: @adamhathcock
Base:
master← Head:adam/rework-archive-encoding📝 Commits (6)
725503dChange ArchiveEncoding to interface. Simplify class. Question what to do about Forced and complex accessbd3cda0Some restoring of functionality486fdf1move to own files and refactor UTF8 usage68451bdUse explicit enum, add comments3215204fmt66e9de2fixed comment📊 Changes
24 files changed (+163 additions, -84 deletions)
View changed files
📝
src/SharpCompress/Common/Ace/Headers/AceFileHeader.cs(+1 -1)📝
src/SharpCompress/Common/Ace/Headers/AceHeader.cs(+2 -2)📝
src/SharpCompress/Common/Ace/Headers/AceMainHeader.cs(+1 -1)📝
src/SharpCompress/Common/Arc/ArcEntryHeader.cs(+2 -2)📝
src/SharpCompress/Common/ArchiveEncoding.cs(+5 -49)➕
src/SharpCompress/Common/ArchiveEncodingExtensions.cs(+87 -0)📝
src/SharpCompress/Common/FilePart.cs(+2 -2)📝
src/SharpCompress/Common/GZip/GZipFilePart.cs(+1 -1)➕
src/SharpCompress/Common/IArchiveEncoding.cs(+36 -0)📝
src/SharpCompress/Common/OptionsBase.cs(+1 -1)📝
src/SharpCompress/Common/Rar/Headers/RarHeader.cs(+3 -3)📝
src/SharpCompress/Common/SevenZip/SevenZipFilePart.cs(+1 -1)📝
src/SharpCompress/Common/Tar/Headers/TarHeader.cs(+2 -2)📝
src/SharpCompress/Common/Tar/TarEntry.cs(+1 -1)📝
src/SharpCompress/Common/Tar/TarHeaderFactory.cs(+1 -1)📝
src/SharpCompress/Common/Zip/Headers/DirectoryEntryHeader.cs(+3 -3)📝
src/SharpCompress/Common/Zip/Headers/LocalEntryHeader.cs(+2 -2)📝
src/SharpCompress/Common/Zip/Headers/ZipFileEntry.cs(+2 -2)📝
src/SharpCompress/Common/Zip/PkwareTraditionalEncryptionData.cs(+3 -3)📝
src/SharpCompress/Common/Zip/SeekableZipHeaderFactory.cs(+1 -1)...and 4 more files
📄 Description
Simplify class. Question what to do about Forced and complex access. Was custom encoder used?
Should I have the interface use a
Functhen default to what I use but allow for anything?Started by https://github.com/adamhathcock/sharpcompress/issues/1115
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.