xdelta.Blake3 3.0.0

dotnet add package xdelta.Blake3 --version 3.0.0
                    
NuGet\Install-Package xdelta.Blake3 -Version 3.0.0
                    
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="xdelta.Blake3" Version="3.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="xdelta.Blake3" Version="3.0.0" />
                    
Directory.Packages.props
<PackageReference Include="xdelta.Blake3" />
                    
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 xdelta.Blake3 --version 3.0.0
                    
#r "nuget: xdelta.Blake3, 3.0.0"
                    
#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 xdelta.Blake3@3.0.0
                    
#: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=xdelta.Blake3&version=3.0.0
                    
Install as a Cake Addin
#tool nuget:?package=xdelta.Blake3&version=3.0.0
                    
Install as a Cake Tool

xdelta.Blake3

Check that an xdelta3 patch was applied to the expected source and produced the expected target. This .NET 8 add-on verifies the BLAKE3 digests stored in the patch’s application header. NuGet installs the core decoder and managed BLAKE3 implementation as dependencies.

dotnet add package xdelta.Blake3
using XDeltaSharp;
using XDeltaSharp.Blake3;

byte[] original = File.ReadAllBytes("original.bin");
byte[] patch = File.ReadAllBytes("update.vcdiff");
byte[] restored = Vcdiff.Decode(original, patch, new VcdiffDecodeOptions
{
    Armor = Blake3Armor.Verify,
    MaxOutputBytes = 256 * 1024 * 1024
});

Blake3Armor.Verify checks each recognized digest and accepts patches without armor. Blake3Armor.Require requires a target digest. It also requires a source digest if the application header includes source fields or a window declares a source dictionary. A missing required digest raises InvalidDataException before the affected window is written. A dictionary-free patch can use a target-only header. Embedded digests detect corruption. To authenticate a patch, verify it against a separately trusted signature or digest.

Both options work with allocating, caller-owned span, and stream output. The core decoder accepts uncompressed sections, including patches made with xdelta3 -S none. For an LZMA-compressed patch, also reference xdelta.Lzma and set the same Armor on an LzmaDecodeOptions.

A wrong source raises InvalidDataException before any target bytes are written. A target digest mismatch raises the same exception after reconstruction, when a supplied span or stream can already contain the full output. Source verification on a stream hashes from its initial position to EOF and requires a readable, seekable source. The decoder hashes streamed target windows incrementally. xdelta3 armor format · XDeltaSharp usage

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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 is compatible.  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 is compatible.  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.  net11.0 is compatible. 
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
3.0.0 97 11/28/2026
2.0.0 93 11/27/2026
1.0.1 118 11/26/2026
1.0.0 149 11/26/2026

Breaking: settings moved from optional parameters to options objects. Pass a VcdiffEncodeOptions (CompressionLevel, MemoryMode, Optimize) to Vcdiff.Encode and a VcdiffDecodeOptions (MaxOutputBytes, MaxWindowBytes, MaxEncodedWindowBytes, Armor) to Vcdiff.Decode. LzmaVcdiff.Decode takes an LzmaDecodeOptions, which adds MaxExpandedSectionBytes and MaxDictionaryBytes. DecodeWithLimits and DecodeWithSecondaryLimits are removed. Patch bytes are unchanged.