Table of Contents

Class ShapeShiftConverter<T, TEncoder, TDecoder>

Namespace
ShapeShift
Assembly
ShapeShift.dll
public abstract class ShapeShiftConverter<T, TEncoder, TDecoder> : ShapeShiftConverter<TEncoder, TDecoder> where TEncoder : IEncoder, allows ref struct where TDecoder : IDecoder, allows ref struct

Type Parameters

T
TEncoder
TDecoder
Inheritance
ShapeShiftConverter<TEncoder, TDecoder>
ShapeShiftConverter<T, TEncoder, TDecoder>
Derived
Inherited Members

Methods

Read(ref TDecoder, SerializationContext<TEncoder, TDecoder>)

public abstract T? Read(ref TDecoder decoder, SerializationContext<TEncoder, TDecoder> context)

Parameters

decoder TDecoder
context SerializationContext<TEncoder, TDecoder>

Returns

T

ReadObject(ref TDecoder, SerializationContext<TEncoder, TDecoder>)

public override sealed object? ReadObject(ref TDecoder reader, SerializationContext<TEncoder, TDecoder> context)

Parameters

reader TDecoder
context SerializationContext<TEncoder, TDecoder>

Returns

object

Write(ref TEncoder, in T?, SerializationContext<TEncoder, TDecoder>)

public abstract void Write(ref TEncoder encoder, in T? value, SerializationContext<TEncoder, TDecoder> context)

Parameters

encoder TEncoder
value T
context SerializationContext<TEncoder, TDecoder>

WriteObject(ref TEncoder, object?, SerializationContext<TEncoder, TDecoder>)

public override sealed void WriteObject(ref TEncoder writer, object? value, SerializationContext<TEncoder, TDecoder> context)

Parameters

writer TEncoder
value object
context SerializationContext<TEncoder, TDecoder>