xdelta.Blake3
3.0.0
dotnet add package xdelta.Blake3 --version 3.0.0
NuGet\Install-Package xdelta.Blake3 -Version 3.0.0
<PackageReference Include="xdelta.Blake3" Version="3.0.0" />
<PackageVersion Include="xdelta.Blake3" Version="3.0.0" />
<PackageReference Include="xdelta.Blake3" />
paket add xdelta.Blake3 --version 3.0.0
#r "nuget: xdelta.Blake3, 3.0.0"
#:package xdelta.Blake3@3.0.0
#addin nuget:?package=xdelta.Blake3&version=3.0.0
#tool nuget:?package=xdelta.Blake3&version=3.0.0
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 | Versions 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. |
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
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.