Diffusion .NET Client Library
6.1.5
|
The read-only binary value with support for binary deltas. More...
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... | |
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
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) .
delta | The binary delta. |
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) .
original | The original Binary value to compare with this value. |