public static int[] decodeValues(OpParameterType[] parameterTypes, CodeIterator iterator, int index) {
int[] result = new int[parameterTypes.length];
int nextValIndex = index + 1;
for(int i = 0; i < parameterTypes.length; i++) {
OpParameterType type = parameterTypes[i];
result[i] = decodeValueAt(type, iterator, nextValIndex);
nextValIndex += type.size;
}
return result;
}