Generator.fromReader constructor

Generator.fromReader(
  1. BinaryReader reader
)

Implementation

factory Generator.fromReader(BinaryReader reader)
{
    GeneratorType type = generatorTypeFromInt(reader.readUInt16());
    int value = reader.readUInt16();

    return Generator(type, value);
}