Diffusion .NET Client Library  6.1.5
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
PushTechnology.ClientInterface.Data.Binary.IBinary Interface Reference

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

Inheritance diagram for PushTechnology.ClientInterface.Data.Binary.IBinary:
PushTechnology.ClientInterface.Data.IBytes

Public Member Functions

IBinary Apply (IBinaryDelta delta)
 Applies a binary delta to this value to create a new value. More...
 
IBinaryDelta Diff (IBinary original)
 Compares this value with an earlier version to calculate a binary delta. More...
 
- Public Member Functions inherited from PushTechnology.ClientInterface.Data.IBytes
Stream AsInputStream ()
 Returns the data as a read-only stream. More...
 
byte[] ToByteArray ()
 Returns a copy of the data as a byte array. More...
 
void CopyTo (Stream outputStream)
 Writes the data to an output stream. More...
 

Additional Inherited Members

- Properties inherited from PushTechnology.ClientInterface.Data.IBytes
int Length [get]
 Returns the length of the data in bytes. More...
 

Detailed Description

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

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

See Also
IBinaryDataType

Member Function Documentation

IBinary PushTechnology.ClientInterface.Data.Binary.IBinary.Apply ( IBinaryDelta  delta)

Applies a binary delta to this value to create a new value.

Convenient equivalent to Diffusion.DataTypes.Binary.BinaryDeltaType.Apply(this, delta) .

Parameters
deltaThe binary delta.
Returns
The new binary value.
IBinaryDelta PushTechnology.ClientInterface.Data.Binary.IBinary.Diff ( IBinary  original)

Compares this value with an earlier version to calculate a binary delta.

Convenient equivalent to Diffusion.DataTypes.Binary.BinaryDeltaType.Apply(this, delta) .

Parameters
originalThe original Binary value to compare with this value.
Returns
The binary delta representing the difference between the original and this Binary.

The documentation for this interface was generated from the following file: