TypeSerializerBase

Description

abstract class Tinman.Core.IO.Serialization.TypeSerializerBase<T>

Derived from

ITypeSerializer<T>

Abstract base class for ITypeSerializer implementations.

In order to support component-wise delta encoding, a derived class must implement the DeltaApply and DeltaCompute methods.

Protected / Methods

Delta​Apply


protected virtual 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


protected virtual 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.