Skip to content

Commit

Permalink
Add back Create(byte[], byte[], Stream) overload.
Browse files Browse the repository at this point in the history
This was removed in c9d377b but would be a binary-breaking change.
  • Loading branch information
bgrainger committed Jul 9, 2024
1 parent a7b5bb2 commit 3ae3b96
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/BsDiff/BinaryPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ POSSIBILITY OF SUCH DAMAGE.
*/
public static class BinaryPatch
{
/// <summary>
/// Creates a binary patch (in <a href="https://www.daemonology.net/bsdiff/">bsdiff</a> format) that can be used
/// (by <see cref="Apply"/>) to transform <paramref name="oldData"/> into <paramref name="newData"/>.
/// </summary>
/// <param name="oldData">The original binary data.</param>
/// <param name="newData">The new binary data.</param>
/// <param name="output">A <see cref="Stream"/> to which the patch will be written.</param>
public static void Create(byte[] oldData, byte[] newData, Stream output) =>
Create(oldData.AsSpan(), newData.AsSpan(), output);

/// <summary>
/// Creates a binary patch (in <a href="https://www.daemonology.net/bsdiff/">bsdiff</a> format) that can be used
/// (by <see cref="Apply"/>) to transform <paramref name="oldData"/> into <paramref name="newData"/>.
Expand Down

0 comments on commit 3ae3b96

Please sign in to comment.