Skip to content

DecimalCodec Methods

Serializer for System.Decimal.

ReadDecimalRaw(Reader<TInput>)

static
View source
public static decimal ReadDecimalRaw<TInput>(ref Reader<TInput> reader)
Reads a value without protocol framing.

Parameters

readerReader<TInput>
The reader.

Returns

The value.

ReadValue(Reader<TInput>, Field)

static
View source
public static decimal ReadValue<TInput>(ref Reader<TInput> reader, Field field)
Reads a value.

Parameters

readerReader<TInput>
The reader.
fieldField
The field.

Returns

The value.

WriteField(Writer<TBufferWriter>, uint, decimal)

static
View source
public static void WriteField<TBufferWriter>(ref Writer<TBufferWriter> writer, uint fieldIdDelta, decimal value)
Writes a field without type info (expected type is statically known).

Parameters

writerWriter<TBufferWriter>
The writer.
fieldIdDeltauint
The field identifier delta.
valuedecimal
The value.