[PR #119] [MERGED] SharpCompress now endian neutral #848

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

📋 Pull Request Information

Original PR: https://github.com/adamhathcock/sharpcompress/pull/119
Author: @benshoof
Created: 1/25/2016
Status: Merged
Merged: 1/26/2016
Merged by: @adamhathcock

Base: masterHead: endian-neutral


📝 Commits (1)

  • 8ceac90 SharpCompress now endian neutral

📊 Changes

30 files changed (+2208 additions, -334 deletions)

View changed files

📝 SharpCompress/Common/GZip/GZipFilePart.cs (+2 -1)
📝 SharpCompress/Common/Tar/Headers/TarHeader.cs (+3 -11)
📝 SharpCompress/Common/Zip/Headers/ZipFileEntry.cs (+3 -2)
📝 SharpCompress/Common/Zip/WinzipAesCryptoStream.Portable.cs (+2 -1)
📝 SharpCompress/Common/Zip/WinzipAesCryptoStream.cs (+2 -1)
📝 SharpCompress/Common/Zip/WinzipAesEncryptionData.Portable.cs (+3 -2)
📝 SharpCompress/Common/Zip/WinzipAesEncryptionData.cs (+3 -2)
📝 SharpCompress/Common/Zip/ZipFilePart.cs (+4 -3)
📝 SharpCompress/Compressor/Deflate/GZipStream.cs (+2 -1)
📝 SharpCompress/Compressor/Deflate/ZlibBaseStream.cs (+6 -5)
📝 SharpCompress/Compressor/LZMA/LzmaStream.cs (+2 -1)
📝 SharpCompress/Compressor/PPMd/H/FreqData.cs (+8 -5)
📝 SharpCompress/Compressor/PPMd/H/PPMContext.cs (+5 -4)
📝 SharpCompress/Compressor/PPMd/H/RarMemBlock.cs (+10 -8)
📝 SharpCompress/Compressor/PPMd/H/RarNode.cs (+3 -2)
📝 SharpCompress/Compressor/PPMd/H/State.cs (+3 -2)
📝 SharpCompress/Compressor/PPMd/PpmdProperties.cs (+4 -3)
📝 SharpCompress/Compressor/Rar/VM/RarVM.cs (+8 -14)
SharpCompress/Converter/DataConverter.Portable.cs (+237 -0)
SharpCompress/Converter/DataConverter.cs (+1849 -0)

...and 10 more files

📄 Description

SharpCompress can now be used on machines with big endian architecture
such as powerpc. All byte conversions now run through Mono's
DataConverter (or a portable version for builds that don't allow unsafe
code) instead of BitConverter, as BitConverter's behavior depends on the
host cpu.


🔄 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/119 **Author:** [@benshoof](https://github.com/benshoof) **Created:** 1/25/2016 **Status:** ✅ Merged **Merged:** 1/26/2016 **Merged by:** [@adamhathcock](https://github.com/adamhathcock) **Base:** `master` ← **Head:** `endian-neutral` --- ### 📝 Commits (1) - [`8ceac90`](https://github.com/adamhathcock/sharpcompress/commit/8ceac9000c2e4867171dab0361cc18bfe8a2d883) SharpCompress now endian neutral ### 📊 Changes **30 files changed** (+2208 additions, -334 deletions) <details> <summary>View changed files</summary> 📝 `SharpCompress/Common/GZip/GZipFilePart.cs` (+2 -1) 📝 `SharpCompress/Common/Tar/Headers/TarHeader.cs` (+3 -11) 📝 `SharpCompress/Common/Zip/Headers/ZipFileEntry.cs` (+3 -2) 📝 `SharpCompress/Common/Zip/WinzipAesCryptoStream.Portable.cs` (+2 -1) 📝 `SharpCompress/Common/Zip/WinzipAesCryptoStream.cs` (+2 -1) 📝 `SharpCompress/Common/Zip/WinzipAesEncryptionData.Portable.cs` (+3 -2) 📝 `SharpCompress/Common/Zip/WinzipAesEncryptionData.cs` (+3 -2) 📝 `SharpCompress/Common/Zip/ZipFilePart.cs` (+4 -3) 📝 `SharpCompress/Compressor/Deflate/GZipStream.cs` (+2 -1) 📝 `SharpCompress/Compressor/Deflate/ZlibBaseStream.cs` (+6 -5) 📝 `SharpCompress/Compressor/LZMA/LzmaStream.cs` (+2 -1) 📝 `SharpCompress/Compressor/PPMd/H/FreqData.cs` (+8 -5) 📝 `SharpCompress/Compressor/PPMd/H/PPMContext.cs` (+5 -4) 📝 `SharpCompress/Compressor/PPMd/H/RarMemBlock.cs` (+10 -8) 📝 `SharpCompress/Compressor/PPMd/H/RarNode.cs` (+3 -2) 📝 `SharpCompress/Compressor/PPMd/H/State.cs` (+3 -2) 📝 `SharpCompress/Compressor/PPMd/PpmdProperties.cs` (+4 -3) 📝 `SharpCompress/Compressor/Rar/VM/RarVM.cs` (+8 -14) ➕ `SharpCompress/Converter/DataConverter.Portable.cs` (+237 -0) ➕ `SharpCompress/Converter/DataConverter.cs` (+1849 -0) _...and 10 more files_ </details> ### 📄 Description SharpCompress can now be used on machines with big endian architecture such as powerpc. All byte conversions now run through Mono's DataConverter (or a portable version for builds that don't allow unsafe code) instead of BitConverter, as BitConverter's behavior depends on the host cpu. --- <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:17:51 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#848