Jamestelfer.Blast
0.0.1-rc
dotnet add package Jamestelfer.Blast --version 0.0.1-rc
NuGet\Install-Package Jamestelfer.Blast -Version 0.0.1-rc
<PackageReference Include="Jamestelfer.Blast" Version="0.0.1-rc" />
<PackageVersion Include="Jamestelfer.Blast" Version="0.0.1-rc" />
<PackageReference Include="Jamestelfer.Blast" />
paket add Jamestelfer.Blast --version 0.0.1-rc
#r "nuget: Jamestelfer.Blast, 0.0.1-rc"
#:package Jamestelfer.Blast@0.0.1-rc
#addin nuget:?package=Jamestelfer.Blast&version=0.0.1-rc&prerelease
#tool nuget:?package=Jamestelfer.Blast&version=0.0.1-rc&prerelease
Blast decompression algorithm
In various places, a PKWare library is used (often called implode.dll) that implements an uncommon, proprietary compression algorithm.
This algorithm was reverse-engineered by Ben Rudiak-Gould back in 2001, and Mark Adler wrote a C implementation in 2003.
This project is a translation into C# of the PKWare compression algorithm implemented in C by Mark Adler.
This implementation varies from the C original (see below).
Compression format
Notes on the Blast/implode format taken from the original code are collated in this repository. Code comments may also help understanding the format.
Variations
I found that the files compressed in the legacy system I came into contact with contained multiple, separate, compressed streams. Each stream is delineated by an end of stream marker. Where the base implementation stops at the end of stream, this implementation checks for further data on the stream and will start decompressing again if it finds any.
Implementation
This is probably the least elegant way of implementing a decompressor. It would be much better to implement Stream, for example. However, it does what it says on the tin; it decompresses the stream. If this was being used for something that was important, you might go to the trouble of making it work better. For me, though, this works faster than shelling out to an executable as the previous system did.
Usage
new Blast.BlastDecoder(sourceStream, destinationStream).Decompress();
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.0.1-rc | 204 | 4/15/2025 |