Skip to content

Codec_ImmutableArraySurrogate<T> Methods

Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

ReadValue(Reader<TReaderInput>, Field)

public ImmutableArraySurrogate<T> ReadValue<TReaderInput>(ref Reader<TReaderInput> reader, Field field)
Reads a value.

Parameters

readerReader<TReaderInput>
The reader.
fieldField
The field.

Returns

The value.

Serialize(Writer<TBufferWriter>, ImmutableArraySurrogate<T>)

public void Serialize<TBufferWriter>(ref Writer<TBufferWriter> writer, scoped ref ImmutableArraySurrogate<T> instance)
Serializes the provided value.

Parameters

writerWriter<TBufferWriter>
The writer.
instanceImmutableArraySurrogate<T>
The value.

WriteField(Writer<TBufferWriter>, uint, Type, ImmutableArraySurrogate<T>)

public void WriteField<TBufferWriter>(ref Writer<TBufferWriter> writer, uint fieldIdDelta, Type expectedType, ImmutableArraySurrogate<T> value)
Writes a field.

Parameters

writerWriter<TBufferWriter>
The writer.
fieldIdDeltauint
The field identifier delta.
expectedTypeType
The expected type.
valueImmutableArraySurrogate<T>
The value.