From 3ae3b965ea5128001faacc18b2b9a18a8b8256b3 Mon Sep 17 00:00:00 2001 From: Bradley Grainger Date: Tue, 9 Jul 2024 14:50:16 -0700 Subject: [PATCH] Add back Create(byte[], byte[], Stream) overload. This was removed in c9d377bd but would be a binary-breaking change. --- src/BsDiff/BinaryPatch.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/BsDiff/BinaryPatch.cs b/src/BsDiff/BinaryPatch.cs index 3326d34..b99c9a7 100644 --- a/src/BsDiff/BinaryPatch.cs +++ b/src/BsDiff/BinaryPatch.cs @@ -33,6 +33,16 @@ POSSIBILITY OF SUCH DAMAGE. */ public static class BinaryPatch { + /// + /// Creates a binary patch (in bsdiff format) that can be used + /// (by ) to transform into . + /// + /// The original binary data. + /// The new binary data. + /// A to which the patch will be written. + public static void Create(byte[] oldData, byte[] newData, Stream output) => + Create(oldData.AsSpan(), newData.AsSpan(), output); + /// /// Creates a binary patch (in bsdiff format) that can be used /// (by ) to transform into .