Table of Contents

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

bool

Defaults to true

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 BinarySpanReader

Binary reader

result T

Reference 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 BinarySpanWriter

Binary writer

data T

Data to be written