Edytuj

Udostępnij za pośrednictwem


SurrogateCodec<TField,TSurrogate,TConverter> Class

Definition

Surrogate serializer for TField.

public sealed class SurrogateCodec<TField,TSurrogate,TConverter> : Orleans.Serialization.Cloning.IBaseCopier<TField>, Orleans.Serialization.Cloning.IDeepCopier<TField>, Orleans.Serialization.Codecs.IFieldCodec<TField>, Orleans.Serialization.Serializers.IBaseCodec<TField> where TField : class where TSurrogate : struct where TConverter : IConverter<TField,TSurrogate>
type SurrogateCodec<'Field, 'Surrogate, 'Converter (requires 'Field : null and 'Surrogate : struct and 'Converter :> IConverter<'Field, 'Surrogate>)> = class
    interface IFieldCodec<'Field (requires 'Field : null)>
    interface IFieldCodec
    interface IDeepCopier<'Field (requires 'Field : null)>
    interface IDeepCopier
    interface IBaseCodec<'Field (requires 'Field : null)>
    interface IBaseCodec
    interface IBaseCopier<'Field (requires 'Field : null)>
    interface IBaseCopier
Public NotInheritable Class SurrogateCodec(Of TField, TSurrogate, TConverter)
Implements IBaseCodec(Of TField), IBaseCopier(Of TField), IDeepCopier(Of TField), IFieldCodec(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
SurrogateCodec<TField,TSurrogate,TConverter>
Implements

Constructors

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

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

Methods

DeepCopy(TField, CopyContext)

Creates a deep copy of the provided input.

DeepCopy(TField, TField, CopyContext)

Clones members from input and copies them to output.

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

Deserializes into the provided value.

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