encodeInstruction<T extends Enum> method

Iterable<int> encodeInstruction<T extends Enum>(
  1. T instruction
)

Encodes the program instruction.

Implementation

Iterable<int> encodeInstruction<T extends Enum>(final T instruction)
  => Buffer.fromUint8(instruction.index);