Skip to content

SkipFieldCodec Methods

A serializer which skips all fields which it encounters.

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