parse static method

OpCode parse(
  1. int value
)

Implementation

static OpCode parse(int value) {
  var idx = codes.indexOf(value);
  return idx < 0 ? OpCode.reserved : OpCode.values[idx];
}