Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
BinaryProperty.cs
1using System;
2using System.Collections.Generic;
3using System.Reflection;
4
6{
10 public class BinaryProperty : Property
11 {
15 public override Type PropertyType => typeof(byte[]);
16
22 public override void Serialize(Serializer Output, object Value)
23 {
24 Output.WriteBinary((byte[])Value);
25 }
26
33 public override object Deserialize(Deserializer Input, Type ExpectedType)
34 {
35 return Input.ReadBinary();
36 }
37 }
38}
byte[] ReadBinary()
Reads binary data from the input.
Definition: Deserializer.cs:77
override object Deserialize(Deserializer Input, Type ExpectedType)
Deserializes the property value
override void Serialize(Serializer Output, object Value)
Serializes the property value of an object.
void WriteBinary(byte[] Value)
Writes binary data to the output.
Definition: Serializer.cs:83