![]() |
Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
|
Serializes a byte array. More...
Public Member Functions | |
ByteArraySerializer () | |
Serializes a byte array. More... | |
object | Deserialize (IBsonReader Reader, BsonType? DataType, bool Embedded) |
Deserializes an object from a binary source. More... | |
void | Serialize (IBsonWriter Writer, bool WriteTypeCode, bool Embedded, object Value) |
Serializes an object to a binary destination. More... | |
bool | TryGetFieldValue (string FieldName, object Object, out object Value) |
Gets the value of a field or property of an object, given its name. More... | |
virtual bool | TryGetFieldType (string FieldName, object Object, out Type FieldType) |
Gets the type of a field or property of an object, given its name. More... | |
Properties | |
Type | ValueType [get] |
What type of object is being serialized. More... | |
bool | IsNullable [get] |
If the value being serialized, can be null. More... | |
Serializes a byte array.
Definition at line 14 of file ByteArraySerializer.cs.
Waher.Persistence.MongoDB.Serialization.ReferenceTypes.ByteArraySerializer.ByteArraySerializer | ( | ) |
Serializes a byte array.
Definition at line 19 of file ByteArraySerializer.cs.
object Waher.Persistence.MongoDB.Serialization.ReferenceTypes.ByteArraySerializer.Deserialize | ( | IBsonReader | Reader, |
BsonType? | DataType, | ||
bool | Embedded | ||
) |
Deserializes an object from a binary source.
Reader | Binary deserializer. |
DataType | Optional datatype. If not provided, will be read from the binary source. |
Embedded | If the object is embedded into another. |
Implements Waher.Persistence.MongoDB.Serialization.IObjectSerializer.
Definition at line 49 of file ByteArraySerializer.cs.
void Waher.Persistence.MongoDB.Serialization.ReferenceTypes.ByteArraySerializer.Serialize | ( | IBsonWriter | Writer, |
bool | WriteTypeCode, | ||
bool | Embedded, | ||
object | Value | ||
) |
Serializes an object to a binary destination.
Writer | Binary destination. |
WriteTypeCode | If a type code is to be output. |
Embedded | If the object is embedded into another. |
Value | The actual object to serialize. |
Implements Waher.Persistence.MongoDB.Serialization.IObjectSerializer.
Definition at line 69 of file ByteArraySerializer.cs.
|
virtual |
Gets the type of a field or property of an object, given its name.
FieldName | Name of field or property. |
Object | Object. |
FieldType | Corresponding field or property type, if found, or null otherwise. |
Implements Waher.Persistence.MongoDB.Serialization.IObjectSerializer.
Definition at line 97 of file ByteArraySerializer.cs.
bool Waher.Persistence.MongoDB.Serialization.ReferenceTypes.ByteArraySerializer.TryGetFieldValue | ( | string | FieldName, |
object | Object, | ||
out object | Value | ||
) |
Gets the value of a field or property of an object, given its name.
FieldName | Name of field or property. |
Object | Object. |
Value | Corresponding field or property value, if found, or null otherwise. |
Implements Waher.Persistence.MongoDB.Serialization.IObjectSerializer.
Definition at line 84 of file ByteArraySerializer.cs.
|
get |
If the value being serialized, can be null.
Implements Waher.Persistence.MongoDB.Serialization.IObjectSerializer.
Definition at line 37 of file ByteArraySerializer.cs.
|
get |
What type of object is being serialized.
Implements Waher.Persistence.MongoDB.Serialization.IObjectSerializer.
Definition at line 26 of file ByteArraySerializer.cs.