wabbajack/Wabbajack.Installer/Utilities/BinaryPatching.cs
2021-10-23 10:51:17 -06:00

15 lines
430 B
C#

using System.IO;
using System.Threading.Tasks;
using Octodiff.Core;
using Octodiff.Diagnostics;
namespace Wabbajack.Installer.Utilities;
public class BinaryPatching
{
public static async ValueTask ApplyPatch(Stream input, Stream deltaStream, Stream output)
{
var deltaApplier = new DeltaApplier();
deltaApplier.Apply(input, new BinaryDeltaReader(deltaStream, new NullProgressReporter()), output);
}
}