mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-08 21:21:57 +00:00
[PR #529] [MERGED] Improve code quality v2 #1078
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/529
Author: @iamcarbon
Created: 7/31/2020
Status: ✅ Merged
Merged: 7/31/2020
Merged by: @adamhathcock
Base:
master← Head:master📝 Commits (7)
6bdf236Inline variable declarations4db6155Refactor ExtraData and enable nullable773158eSeal LZipStream7750ed7Finish spanification of RijndaelEngine6973436Add and use Stream.Write(ReadOnlySpan buffer) polyfill4357165Add Read/Write overrides to NonDisposingStreamee3162aFix return📊 Changes
12 files changed (+154 additions, -114 deletions)
View changed files
📝
src/SharpCompress/Archives/GZip/GZipArchive.cs(+3 -4)📝
src/SharpCompress/Common/SevenZip/ArchiveReader.cs(+8 -17)📝
src/SharpCompress/Common/Zip/Headers/LocalEntryHeaderExtraFactory.cs(+24 -35)📝
src/SharpCompress/Compressors/BZip2/BZip2Stream.cs(+17 -2)📝
src/SharpCompress/Compressors/Deflate/ZlibBaseStream.cs(+4 -4)📝
src/SharpCompress/Compressors/LZMA/LZipStream.cs(+18 -1)📝
src/SharpCompress/Crypto/Crc32Stream.cs(+15 -5)📝
src/SharpCompress/Crypto/RijndaelEngine.cs(+17 -35)📝
src/SharpCompress/IO/NonDisposingStream.cs(+14 -0)➕
src/SharpCompress/Polyfills/StreamExtensions.cs(+25 -0)📝
src/SharpCompress/Utility.cs(+2 -4)📝
src/SharpCompress/Writers/Zip/ZipWriter.cs(+7 -7)📄 Description
This PR polyfills Stream.Write(ReadOnlySpan buffer) on .NET framework and eliminates a few allocations.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.