This library is a dotnet binding of xdelta
Runtimes | Nuget package |
---|---|
xdelta3.net | |
xdelta3.net.redist.windows.x64 | |
xdelta3.net.redist.linux.x64 |
<ItemGroup>
<PackageReference Include="xdelta3.net" />
</ItemGroup>
var source = new byte[] { 1, 2, 3, 4, 5 };
var target = new byte[] { 5, 4, 3, 2, 1};
var delta = Xdelta3Lib.Encode(source: source, target: target);
var decoded = Xdelta3Lib.Decode(source: source, delta: delta);
decoded.ToArray().Should().BeEquivalentTo(target);