Edit

Share via


ReferenceCodec Class

Definition

Functionality for reading and writing object references.

public static class ReferenceCodec
type ReferenceCodec = class
Public Class ReferenceCodec
Inheritance
ReferenceCodec

Methods

CreateRecordPlaceholder(SerializerSession)

Records and returns a placeholder reference id for objects which cannot be immediately deserialized.

MarkValueField(SerializerSession)

Indicates that the field being serialized or deserialized is a value type.

ReadReference<T,TInput>(Reader<TInput>, Field)

Reads a referenced value.

ReadReference<TInput>(Reader<TInput>, Type)

Reads the reference.

RecordObject(SerializerSession, Object, UInt32)

Records that an object was read or written.

RecordObject(SerializerSession, Object)

Records that an object was read or written.

TryWriteReferenceField<TBufferWriter>(Writer<TBufferWriter>, UInt32, Type, Object)

Write an object reference if value has already been written and has been tracked via RecordObject(SerializerSession, Object).

TryWriteReferenceField<TBufferWriter>(Writer<TBufferWriter>, UInt32, Type, Type, Object)

Write an object reference if value has already been written and has been tracked via RecordObject(SerializerSession, Object). ///

WriteNullReference<TBufferWriter>(Writer<TBufferWriter>, UInt32)

Writes the null reference.

Applies to