Example #1
0
 public static bool TryGetPatch(Hash foundHash, Hash fileHash, [MaybeNullWhen(false)] out byte[] ePatch) =>
 PatchCache.TryGetPatch(foundHash, fileHash, out ePatch);
Example #2
0
 public static Task CreatePatchCached(byte[] a, byte[] b, Stream output) =>
 PatchCache.CreatePatchCached(a, b, output);
Example #3
0
 public static Task <long> CreatePatchCached(Stream srcStream, Hash srcHash, Stream destStream, Hash destHash, Stream?patchOutStream = null) =>
 PatchCache.CreatePatchCached(srcStream, srcHash, destStream, destHash, patchOutStream);
Example #4
0
 public static void ApplyPatch(Stream input, Func <Stream> openPatchStream, Stream output) =>
 PatchCache.ApplyPatch(input, openPatchStream, output);