Поделиться через


ValueTypeSurrogateCodec<TField,TSurrogate,TConverter> Класс

Определение

Суррогатный сериализатор для 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)

Параметры типа

TField

Тип, поддерживаемый реализацией этого класса.

TSurrogate

Суррогатный тип, сериализованный вместо TField.

TConverter

Тип преобразователя, который преобразует между TField и TSurrogate.

Наследование
ValueTypeSurrogateCodec<TField,TSurrogate,TConverter>
Реализации

Конструкторы

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

Инициализирует новый экземпляр класса ValueTypeSurrogateCodec<TField,TSurrogate,TConverter>.

Методы

DeepCopy(TField, CopyContext)

Создает глубокую копию предоставленных входных данных.

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

Десериализует указанный тип.

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

Считывает значение.

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

Сериализует предоставленное значение.

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

Записывает поле.

Применяется к