ITypeSerializer

Description

[ShutdownSurvive]
interface Tinman.Core.IO.Serialization.ITypeSerializer<T val>

Extended by

ITypeSerializerEx
TypeSerializerBase abstract

Base interface for classes that perform serialization of concrete types.

For serialization of value arrays and collections, a type serializer may provide an optional component-wise delta encoding between subsequent values. Such encoding can improve compression ratios, as it usually reduces the entropy of the data.

Public / Methods

Delta​Apply


public method DeltaApply → (2)

previous in : T

The previous value.

delta in : T

The delta from previous in to the current value.

returns → T

The current value.

Applies the component-wise delta to the given value.

Delta​Compute


public method DeltaCompute → (2)

previous in : T

The previous value.

current in : T

The current value.

returns → T

The delta from previous in to current in.

Computes the component-wise delta between the given values.

Read​Value


public method ReadValue → (1)

data in : ISerializer

[not-null]
The serialization stream.

returns → T

The deserialized value.

Deserializes a struct value form the given serialization stream.

IOException

If an I/O error has occurred.

Write​Value


public method WriteValue → (2)

data in : ISerializer

[not-null]
The serialization stream.

value in : T

The struct value to serialize.

Serializes the given struct value to the serialization stream.

IOException

If an I/O error has occurred.