Skip to content

WellKnownStringComparerCodec Methods

Serializer for well-known System.StringComparer types.

IsSupportedType(Type)

View source
public bool IsSupportedType(Type type)
Determines whether the specified type is supported by this instance.

Parameters

typeType
The type.

Returns

true if the specified type is supported; otherwise, false.

ReadValue(Reader<TInput>, Field)

View source
public object ReadValue<TInput>(ref Reader<TInput> reader, Field field)
Reads a value and returns it untyped. The type must still match the codec instance!

Parameters

readerReader<TInput>
fieldField

WriteField(Writer<TBufferWriter>, uint, Type, object)

View source
public void WriteField<TBufferWriter>(ref Writer<TBufferWriter> writer, uint fieldIdDelta, Type expectedType, object value)
Writes a field using the provided untyped value. The type must still match the codec instance!

Parameters

writerWriter<TBufferWriter>
fieldIdDeltauint
expectedTypeType
valueobject