Interface IBinary

The read-only binary value with support for binary deltas.

Inherited Members
IBytes.Length
IBytes.AsInputStream()
IBytes.ToByteArray()
IBytes.CopyTo(Stream)
Namespace: PushTechnology.ClientInterface.Data.Binary
Assembly: Diffusion.Client.dll
Syntax
public interface IBinary : IBytes
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.

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 Diffusion.DataTypes.Binary.BinaryDeltaType.Apply(this, delta) .

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 Diffusion.DataTypes.Binary.BinaryDeltaType.Apply(this, delta) .

See Also

IBinaryDataType
Back to top