GKZipLib 1.0.1

dotnet add package GKZipLib --version 1.0.1                
NuGet\Install-Package GKZipLib -Version 1.0.1                
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="GKZipLib" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GKZipLib --version 1.0.1                
#r "nuget: GKZipLib, 1.0.1"                
#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.
// Install GKZipLib as a Cake Addin
#addin nuget:?package=GKZipLib&version=1.0.1

// Install GKZipLib as a Cake Tool
#tool nuget:?package=GKZipLib&version=1.0.1                

GKZipLib was written for fast parsing of ZIP archives generated by GrayKey in .NET. Publicly available parsing libraries I tried in C# were either too slow at parsing large ZIPs or completely failed when attempting to parse GK zips (or both). Developing this library was a fantastic exercise that really enhanced my own personal understanding of how zip files work.

One of the big focuses of this library is being as fast as possible. Let's keep in mind GK zips can go from 5-10 GB to hundreds of GB in size. So how do we keep it fast? GKZipLib accomplishes this by parsing ONLY as much as it needs to, unless a file is identified (by path, etc) as needing to be extracted.

First, it parses the entire central directory into RAM. The CD is typically quite small so this is doable. On a file-by-file basis, you can then decide whether or not to load additional details such as the data's absolute offset within the file, the file's compressed/uncompressed size, and so on.

Probably the most potent usage of this is what I'm going to call "LINQ to GKZip" -- taking advantage of the fact that the library implements IEnumerable and thus can be called with a simple foreach. Please see Example.cs for the simplest usage.

Contact the author on Discord - forensicmike#6426 or Twitter DM @forensicmike1

Product Compatible and additional computed target framework versions.
.NET Framework net471 is compatible.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.0.1 643 3/4/2020
1.0.0 523 3/4/2020