Jamestelfer.Blast 0.0.1-rc

This is a prerelease version of Jamestelfer.Blast.
dotnet add package Jamestelfer.Blast --version 0.0.1-rc
                    
NuGet\Install-Package Jamestelfer.Blast -Version 0.0.1-rc
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Jamestelfer.Blast" Version="0.0.1-rc" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Jamestelfer.Blast" Version="0.0.1-rc" />
                    
Directory.Packages.props
<PackageReference Include="Jamestelfer.Blast" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Jamestelfer.Blast --version 0.0.1-rc
                    
#r "nuget: Jamestelfer.Blast, 0.0.1-rc"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Jamestelfer.Blast@0.0.1-rc
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Jamestelfer.Blast&version=0.0.1-rc&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Jamestelfer.Blast&version=0.0.1-rc&prerelease
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .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