ValueTypeSurrogateCodec<TField,TSurrogate,TConverter> 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.
Surrogate serializer for 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)
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
-
ValueTypeSurrogateCodec<TField,TSurrogate,TConverter>
- Implements
-
IDeepCopier IDeepCopier<TField> IFieldCodec IFieldCodec<TField> IValueSerializer IValueSerializer<TField>
Constructors
Methods
DeepCopy(TField, CopyContext) |
Creates a deep copy of the provided input. |
Deserialize<TInput>(Reader<TInput>, TField) |
Deserializes the specified type. |
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. |