Delta

Ecng.IO.Fossil

Create and apply deltas to files.

Métodos

Apply
public static ValueTask<byte[]> Apply(byte[] origin, byte[] delta, CancellationToken token)
result = Delta.Apply(origin, delta, token)

Apply a delta to a source file to create a new target file.

origin
The source file. This is the file that was used to create the delta.
delta
The delta to apply to the source file.
token
A cancellation token that can be used to cancel the operation.

Retorna: The target file.

Create
public static ValueTask<byte[]> Create(byte[] origin, byte[] target, CancellationToken token)
result = Delta.Create(origin, target, token)

Create a delta between two files.

origin
The original file.
target
The target file.
token
A cancellation token that can be used to cancel the operation.

Retorna: The delta.

OutputSize
public static uint OutputSize(byte[] delta)
result = Delta.OutputSize(delta)

Return the size of the output file given a delta.

delta
A delta obtained from the CancellationToken) method.

Retorna: The size of the output file.