Redigera

Dela via


ValueSerializer<TField,TValueSerializer> Class

Definition

Serializer for value types.

public sealed class ValueSerializer<TField,TValueSerializer> : Orleans.Serialization.Codecs.IFieldCodec<TField> where TField : struct where TValueSerializer : IValueSerializer<TField>
type ValueSerializer<'Field, 'ValueSerializer (requires 'Field : struct and 'ValueSerializer :> IValueSerializer<'Field>)> = class
    interface IFieldCodec<'Field (requires 'Field : struct)>
    interface IFieldCodec
Public NotInheritable Class ValueSerializer(Of TField, TValueSerializer)
Implements IFieldCodec(Of TField)

Type Parameters

TField

The field type.

TValueSerializer

The value-type serializer implementation type.

Inheritance
ValueSerializer<TField,TValueSerializer>
Implements

Constructors

ValueSerializer<TField,TValueSerializer>(TValueSerializer)

Initializes a new instance of the ValueSerializer<TField,TValueSerializer> class.

Methods

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

Reads a value.

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

Writes a field.

Applies to