Interface IBinary
- Namespace
- PushTechnology.ClientInterface.Data.Binary
- Assembly
- Diffusion.Client.dll
The read-only binary value with support for binary deltas.
public interface IBinary : IBytes
- Inherited Members
Remarks
Values are effectively immutable. Instances can be backed by user-supplied byte arrays. Once a Binary has been constructed around an array, care must be taken not to modify the data in the array because doing so would violate immutability.
Since 5.8
Methods
Apply(IBinaryDelta)
Applies a binary delta to this value to create a new value.
IBinary Apply(IBinaryDelta delta)
Parameters
deltaIBinaryDeltaThe binary delta.
Returns
- IBinary
The new binary value.
Remarks
Convenient equivalent to Diffusion.DataTypes.Binary.BinaryDeltaType.Apply(this, delta) .
Diff(IBinary)
Compares this value with an earlier version to calculate a binary delta.
IBinaryDelta Diff(IBinary original)
Parameters
originalIBinaryThe original Binary value to compare with this value.
Returns
- IBinaryDelta
The binary delta representing the difference between the original and this Binary.
Remarks
Convenient equivalent to Diffusion.DataTypes.Binary.BinaryDeltaType.Apply(this, delta) .