Edit

Share via


ValueTypeSurrogateCodec<TField,TSurrogate,TConverter> Class

Definition

Surrogate serializer for TField.

public sealed class ValueTypeSurrogateCodec<TField,TSurrogate,TConverter> : Orleans.Serialization.Cloning.IDeepCopier<TField>, Orleans.Serialization.Codecs.IFieldCodec<TField>, Orleans.Serialization.Serializers.IValueSerializer<TField> where TField : struct where TSurrogate : struct where TConverter : IConverter<TField,TSurrogate>
type ValueTypeSurrogateCodec<'Field, 'Surrogate, 'Converter (requires 'Field : struct and 'Surrogate : struct and 'Converter :> IConverter<'Field, 'Surrogate>)> = class
    interface IFieldCodec<'Field (requires 'Field : struct)>
    interface IFieldCodec
    interface IDeepCopier<'Field (requires 'Field : struct)>
    interface IDeepCopier
    interface IValueSerializer<'Field (requires 'Field : struct)>
    interface IValueSerializer
Public NotInheritable Class ValueTypeSurrogateCodec(Of TField, TSurrogate, TConverter)
Implements IDeepCopier(Of TField), IFieldCodec(Of TField), IValueSerializer(Of TField)

Type Parameters

TField

The type which the implementation of this class supports.

TSurrogate

The surrogate type serialized in place of TField.

TConverter

The converter type which converts between TField and TSurrogate.

Inheritance
ValueTypeSurrogateCodec<TField,TSurrogate,TConverter>
Implements

Constructors

ValueTypeSurrogateCodec<TField,TSurrogate,TConverter>(IValueSerializer<TSurrogate>, IDeepCopier<TSurrogate>, TConverter)

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

Methods

DeepCopy(TField, CopyContext)

Creates a deep copy of the provided input.

Deserialize<TInput>(Reader<TInput>, TField)

Deserializes the specified type.

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

Reads a value.

Serialize<TBufferWriter>(Writer<TBufferWriter>, TField)

Serializes the provided value.

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

Writes a field.

Applies to