wabbajack/Wabbajack.Compiler/PatchCache/IBinaryPatchCache.cs

15 lines
457 B
C#
Raw Permalink Normal View History

2021-09-27 12:42:46 +00:00
using System.IO;
using System.Threading.Tasks;
using Wabbajack.Compiler.PatchCache;
using Wabbajack.Hashing.xxHash64;
2022-05-27 05:41:11 +00:00
using Wabbajack.RateLimiter;
2021-09-27 12:42:46 +00:00
2021-10-23 16:51:17 +00:00
namespace Wabbajack.Compiler;
public interface IBinaryPatchCache
2021-09-27 12:42:46 +00:00
{
2022-05-27 05:41:11 +00:00
public Task<CacheEntry> CreatePatch(Stream srcStream, Hash srcHash, Stream destStream, Hash destHash, IJob? job = null);
2021-09-27 12:42:46 +00:00
2021-10-23 16:51:17 +00:00
public Task<CacheEntry?> GetPatch(Hash hashA, Hash hashB);
public Task<byte[]> GetData(CacheEntry entry);
2021-09-27 12:42:46 +00:00
}