Function Decoder.readEnum

Reads an enumeration.

abstract ulong readEnum (
  const(Schema) enumSchema
) @safe;

Returns

The enumeration's value.

Throws

- AvroTypeException If this is a stateful reader and enumeration is not the type of the next value to be read. - IOException