Diffusion .NET Client Library
6.1.5
|
Public Member Functions | |
IJSON | FromJSONString (string json) |
Parses a JSON string. More... | |
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... | |
Properties | |
IDeltaType< IJSON, 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... | |
The JSON data type.
For efficiency, the JSON value is serialized in binary form following the CBOR specification.
The implementation provides support for binary deltas.
.
Since 5.8
IJSON PushTechnology.ClientInterface.Data.JSON.IJSONDataType.FromJSONString | ( | string | json | ) |
Parses a JSON string.
Precision for numeric types is lost in the translation to the internal CBOR binary form and non-significant white space is not preserved. It is not guaranteed that
equals
.
json | The JSON-formatted string to parse. |
|
get |
Returns support for binary deltas.
Equivalent to calling DeltaType(typeof(IBinaryDelta)).