Redigera

Dela via


GeneralizedValueTypeSurrogateCodec<TField,TSurrogate> Class

Definition

Surrogate serializer for TField and all sub-types.

public abstract class GeneralizedValueTypeSurrogateCodec<TField,TSurrogate> : Orleans.Serialization.Codecs.IFieldCodec<TField> where TField : struct where TSurrogate : struct
type GeneralizedValueTypeSurrogateCodec<'Field, 'Surrogate (requires 'Field : struct and 'Surrogate : struct)> = class
    interface IFieldCodec<'Field (requires 'Field : struct)>
    interface IFieldCodec
Public MustInherit Class GeneralizedValueTypeSurrogateCodec(Of TField, TSurrogate)
Implements IFieldCodec(Of TField)

Type Parameters

TField

The type which the implementation of this class supports.

TSurrogate

The surrogate type serialized in place of TField.

Inheritance
GeneralizedValueTypeSurrogateCodec<TField,TSurrogate>
Derived
Implements

Constructors

GeneralizedValueTypeSurrogateCodec<TField,TSurrogate>(IValueSerializer<TSurrogate>)

Initializes a new instance of the GeneralizedValueTypeSurrogateCodec<TField,TSurrogate> class.

Methods

ConvertFromSurrogate(TSurrogate)

Converts a value from the surrogate type to the field type.

ConvertToSurrogate(TField, TSurrogate)

Converts a value to the surrogate type.

ReadValue<TInput>(Reader<TInput>, Field)

Reads a value.

WriteField<TBufferWriter>(Writer<TBufferWriter>, UInt32, Type, TField)

Writes a field.

Applies to