Table of Contents

Method WriteDecimalBytes

Namespace
AvroSharp.Serialization
Assembly
AvroSharp.dll

WriteDecimalBytes(ref AvroWriter, decimal, int, int)

Writes a decimal on bytes, using the fewest bytes that hold the unscaled value.

public static void WriteDecimalBytes(ref AvroWriter writer, decimal value, int scale, int precision)

Parameters

writer AvroWriter

The destination.

value decimal

The value; it must have at most scale fractional digits and precision digits.

scale int

The schema's scale.

precision int

The schema's precision.