Function Encoder.writeEnum

Writes an enumeration.

abstract void writeEnum (
  ulong e,
  string sym
) @safe;

Parameters

NameDescription
e The ordinal value of an enum to write.
sym The textual symbol of the enum.

Throws

AvroTypeException If this is a stateful writer and an enumeration is not expected or the e is out of range.