Interface IBinary
The read-only binary value with support for binary deltas.
Namespace: PushTechnology.ClientInterface.Data.Binary
Assembly: Diffusion.Client.dll
Syntax
public interface IBinary : IBytes
Remarks
Values are effectively immutable. Instances can be backed by ReadValue(Byte[], Int32, Int32). 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.
Declaration
IBinary Apply(IBinaryDelta delta)
Parameters
Type | Name | Description |
---|---|---|
IBinaryDelta | delta | The binary delta. |
Returns
Type | Description |
---|---|
IBinary | The new binary value. |
Remarks
Convenient equivalent to Apply(Object, Object).
Diff(IBinary)
Compares this value with an earlier version to calculate a binary delta.
Declaration
IBinaryDelta Diff(IBinary original)
Parameters
Type | Name | Description |
---|---|---|
IBinary | original | The original Binary value to compare with this value. |
Returns
Type | Description |
---|---|
IBinaryDelta | The binary delta representing the difference between the original and this Binary. |
Remarks
Convenient equivalent to Diff(Object, Object).