Diffusion .NET Client Library
6.1.5
|
The binary data type. More...
Properties | |
IDeltaType< IBinary, IBinaryDelta > | BinaryDeltaType [get] |
Returns support for binary deltas. More... | |
Properties inherited from PushTechnology.ClientInterface.Data.IDataType | |
string | TypeName [get] |
Returns the external type identifier. More... | |
Additional Inherited Members | |
Public Member Functions inherited from PushTechnology.ClientInterface.Data.IDataType< TValue > | |
void | WriteValue (TValue value, Stream outputStream) |
Serializes a value to binary. More... | |
new TValue | ReadValue (byte[] input, int offset, int length) |
Parses a value from a binary data segment. More... | |
new TValue | ReadValue (byte[] input) |
Parses a value from a binary. More... | |
new TValue | ReadValue (IBytes bytes) |
Parses a value from binary. More... | |
void | Validate (TValue value) |
Checks whether a value is valid. More... | |
IDeltaType< TValue, TDelta > | DeltaType< TDelta > () |
Returns a IDeltaType by type. More... | |
IBytes | ToBytes (TValue value) |
Returns the serialized form of the given value as IBytes. More... | |
bool | CanReadAs< TResult > () |
Checks whether this data type is compatible with the given type parameter. More... | |
TResult | ReadAs< TResult > (byte[] input, int offset, int length) |
Creates a value of a compatible type from a binary data segment. More... | |
TResult | ReadAs< TResult > (byte[] input) |
Creates a value of a compatible type from a binary data segment. More... | |
TResult | ReadAs< TResult > (IBytes bytes) |
Creates a value of a compatible type from a binary. More... | |
Public Member Functions inherited from PushTechnology.ClientInterface.Data.IDataType | |
void | WriteValue (object value, Stream outputStream) |
Serializes a value to binary. More... | |
void | Validate (object value) |
Checks whether a value is valid. More... | |
IDeltaType | DeltaType (string typeName) |
Returns a IDeltaType by name. More... | |
IDeltaType | DeltaType (Type valueDeltaType) |
Returns a IDeltaType by type. More... | |
IBytes | ToBytes (object value) |
Returns the serialized form of the given value as IBytes. More... | |
bool | CanReadAs (Type resultType) |
Checks whether this data type is compatible with the given resultType . More... | |
object | ReadAs (Type resultType, byte[] input, int offset, int length) |
Creates a value of a compatible type from a binary data segment. More... | |
object | ReadAs (Type resultType, byte[] input) |
Creates a value of a compatible type from a binary data segment. More... | |
object | ReadAs (Type resultType, IBytes bytes) |
Creates a value of a compatible type from binary. More... | |
The binary data type.
IBinary values can be used to store and transmit arbitrary information. The responsibility for formatting and interpreting the information belongs solely to the application. Before using binary for a topic, consider other data types such as JSON.IJSON or single value topic types; these may provide a simpler interface for your application.
The implementation provides support for binary deltas.
Since 5.8
|
get |
Returns support for binary deltas.
Equivalent to calling DeltaType(typeof(IBinaryDelta)).