Class Delta
Create and apply deltas to files.
public class Delta
- Inheritance
-
Delta
- Inherited Members
- Extension Methods
Constructors
Delta()
public Delta()
Methods
Apply(byte[], byte[], CancellationToken)
Apply a delta to a source file to create a new target file.
public static ValueTask<byte[]> Apply(byte[] origin, byte[] delta, CancellationToken token)
Parameters
origin
byte[]The source file. This is the file that was used to create the delta.
delta
byte[]The delta to apply to the source file.
token
CancellationTokenA cancellation token that can be used to cancel the operation.
Returns
Create(byte[], byte[], CancellationToken)
Create a delta between two files.
public static ValueTask<byte[]> Create(byte[] origin, byte[] target, CancellationToken token)
Parameters
origin
byte[]The original file.
target
byte[]The target file.
token
CancellationTokenA cancellation token that can be used to cancel the operation.
Returns
OutputSize(byte[])
Return the size of the output file given a delta.
[CLSCompliant(false)]
public static uint OutputSize(byte[] delta)
Parameters
delta
byte[]A delta obtained from the Create(byte[], byte[], CancellationToken) method.
Returns
- uint
The size of the output file.