[PR #568] [MERGED] Use stackallocs where possible/sensible #1101

Open
opened 2026-01-29 22:19:00 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/adamhathcock/sharpcompress/pull/568
Author: @Bond-009
Created: 2/12/2021
Status: Merged
Merged: 2/13/2021
Merged by: @adamhathcock

Base: masterHead: stackalloc


📝 Commits (1)

  • cd67744 Use stackallocs where possible/sensible

📊 Changes

18 files changed (+102 additions, -100 deletions)

View changed files

📝 src/SharpCompress/Archives/GZip/GZipArchive.cs (+1 -1)
📝 src/SharpCompress/Common/GZip/GZipFilePart.cs (+2 -2)
📝 src/SharpCompress/Common/Rar/RarCryptoWrapper.cs (+2 -2)
📝 src/SharpCompress/Common/SevenZip/ArchiveReader.cs (+2 -1)
📝 src/SharpCompress/Common/Tar/Headers/TarHeader.cs (+1 -1)
📝 src/SharpCompress/Common/Zip/WinzipAesCryptoStream.cs (+1 -1)
📝 src/SharpCompress/Common/Zip/ZipFilePart.cs (+1 -1)
📝 src/SharpCompress/Compressors/Deflate/ZlibBaseStream.cs (+5 -7)
📝 src/SharpCompress/Compressors/LZMA/LZipStream.cs (+4 -4)
📝 src/SharpCompress/Compressors/PPMd/PpmdProperties.cs (+6 -2)
📝 src/SharpCompress/Compressors/Xz/BinaryUtils.cs (+4 -3)
📝 src/SharpCompress/Compressors/Xz/Crc32.cs (+5 -6)
📝 src/SharpCompress/Compressors/Xz/Crc64.cs (+4 -4)
📝 src/SharpCompress/Polyfills/StreamExtensions.cs (+2 -2)
📝 src/SharpCompress/Utility.cs (+2 -2)
📝 src/SharpCompress/Writers/Tar/TarWriter.cs (+2 -2)
📝 src/SharpCompress/Writers/Zip/ZipCentralDirectoryEntry.cs (+22 -22)
📝 src/SharpCompress/Writers/Zip/ZipWriter.cs (+36 -37)

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/adamhathcock/sharpcompress/pull/568 **Author:** [@Bond-009](https://github.com/Bond-009) **Created:** 2/12/2021 **Status:** ✅ Merged **Merged:** 2/13/2021 **Merged by:** [@adamhathcock](https://github.com/adamhathcock) **Base:** `master` ← **Head:** `stackalloc` --- ### 📝 Commits (1) - [`cd67744`](https://github.com/adamhathcock/sharpcompress/commit/cd677440ce83d4c982eb786a9d0e452195c76c0d) Use stackallocs where possible/sensible ### 📊 Changes **18 files changed** (+102 additions, -100 deletions) <details> <summary>View changed files</summary> 📝 `src/SharpCompress/Archives/GZip/GZipArchive.cs` (+1 -1) 📝 `src/SharpCompress/Common/GZip/GZipFilePart.cs` (+2 -2) 📝 `src/SharpCompress/Common/Rar/RarCryptoWrapper.cs` (+2 -2) 📝 `src/SharpCompress/Common/SevenZip/ArchiveReader.cs` (+2 -1) 📝 `src/SharpCompress/Common/Tar/Headers/TarHeader.cs` (+1 -1) 📝 `src/SharpCompress/Common/Zip/WinzipAesCryptoStream.cs` (+1 -1) 📝 `src/SharpCompress/Common/Zip/ZipFilePart.cs` (+1 -1) 📝 `src/SharpCompress/Compressors/Deflate/ZlibBaseStream.cs` (+5 -7) 📝 `src/SharpCompress/Compressors/LZMA/LZipStream.cs` (+4 -4) 📝 `src/SharpCompress/Compressors/PPMd/PpmdProperties.cs` (+6 -2) 📝 `src/SharpCompress/Compressors/Xz/BinaryUtils.cs` (+4 -3) 📝 `src/SharpCompress/Compressors/Xz/Crc32.cs` (+5 -6) 📝 `src/SharpCompress/Compressors/Xz/Crc64.cs` (+4 -4) 📝 `src/SharpCompress/Polyfills/StreamExtensions.cs` (+2 -2) 📝 `src/SharpCompress/Utility.cs` (+2 -2) 📝 `src/SharpCompress/Writers/Tar/TarWriter.cs` (+2 -2) 📝 `src/SharpCompress/Writers/Zip/ZipCentralDirectoryEntry.cs` (+22 -22) 📝 `src/SharpCompress/Writers/Zip/ZipWriter.cs` (+36 -37) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 22:19:00 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#1101