Partilhar via


ValueTypeSurrogateCodec<TField,TSurrogate,TConverter> Classe

Definição

Serializador substituto para 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)

Parâmetros de tipo

TField

O tipo ao qual a implementação dessa classe dá suporte.

TSurrogate

O tipo alternativo serializado no lugar de TField.

TConverter

O tipo de conversor que converte entre TField e TSurrogate.

Herança
ValueTypeSurrogateCodec<TField,TSurrogate,TConverter>
Implementações

Construtores

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

Inicializa uma nova instância da classe ValueTypeSurrogateCodec<TField,TSurrogate,TConverter>.

Métodos

DeepCopy(TField, CopyContext)

Cria uma cópia profunda da entrada fornecida.

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

Desserializa o tipo especificado.

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

Lê um valor.

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

Serializa o valor fornecido.

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

Grava um campo.

Aplica-se a