Class BinarySerializer<T>
- Namespace
- Backdash.Serialization
- Assembly
- Backdash.dll
public abstract class BinarySerializer<T> : IBinarySerializer<T>, IBinaryReader<T>, IBinaryWriter<T>
Type Parameters
T
- Inheritance
-
BinarySerializer<T>
- Implements
- Inherited Members
Constructors
BinarySerializer()
protected BinarySerializer()
Properties
Network
Forces serialization byte order to network order BigEndian.
public bool Network { get; init; }
Property Value
- See Also
Methods
Deserialize(in BinarySpanReader, ref T)
Deserialize buffer data using binaryReader
into result
protected abstract void Deserialize(in BinarySpanReader binaryReader, ref T result)
Parameters
binaryReader
BinarySpanReaderBinary reader
result
TReference to be set with the deserialized value.
Serialize(in BinarySpanWriter, in T)
Serialize data
using BinarySpanWriter
protected abstract void Serialize(in BinarySpanWriter binaryWriter, in T data)
Parameters
binaryWriter
BinarySpanWriterBinary writer
data
TData to be written