intToOperandType static method

int intToOperandType(
  1. int value
)

Implementation

static int intToOperandType(int value){
  switch(value){
    case 0x00: return OperandType.large;
    case 0x01: return OperandType.small;
    case 0x02: return OperandType.variable;
    case 0x03: return OperandType.omitted;
    default:
      throw Exception("Unrecognized int when attempting to convert to OperandType");
  }
}