ValueSerializer<TField,TValueSerializer> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
-
IFieldCodec IFieldCodec<TField>
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. |