TypeCodec Class

Definition

Functionality for serializing and deserializing types.

public sealed class TypeCodec
type TypeCodec = class
Public NotInheritable Class TypeCodec
Inheritance
TypeCodec

Constructors

TypeCodec(TypeConverter)

Initializes a new instance of the TypeCodec class.

Methods

ReadLengthPrefixed<TInput>(Reader<TInput>)

Reads a length-prefixed type.

TryRead<TInput>(Reader<TInput>)

Reads a type.

TryReadForAnalysis<TInput>(Reader<TInput>, Type, String)

Tries to read a type for diagnostics purposes.

WriteEncodedType<TBufferWriter>(Writer<TBufferWriter>, Type)

Writes a type.

WriteLengthPrefixed<TBufferWriter>(Writer<TBufferWriter>, Type)

Writes a type with a length-prefix.

Applies to