private ClassData.Method[] adjustMethods(ClassData.Method[] methods) { ClassData.Method[] adjustedMethods = new ClassData.Method[methods.length]; for (int i = 0; i < methods.length; ++i) { ClassData.Method method = methods[i]; int adjustedMethodIndex = adjustMethodIdIndex(method.methodIndex); int adjustedCodeOffset = adjustCodeOffset(method.codeOffset); adjustedMethods[i] = new ClassData.Method( adjustedMethodIndex, method.accessFlags, adjustedCodeOffset ); } return adjustedMethods; }
private ClassData.Method[] readMethods(int count) { ClassData.Method[] result = new ClassData.Method[count]; int methodIndex = 0; for (int i = 0; i < count; i++) { methodIndex += readUleb128(); // method index diff int accessFlags = readUleb128(); int codeOff = readUleb128(); result[i] = new ClassData.Method(methodIndex, accessFlags, codeOff); } return result; }
private ClassData.Method[] adjustMethods(ClassData.Method[] methods) { ClassData.Method[] adjustedMethods = new ClassData.Method[methods.length]; for (int i = 0; i < methods.length; ++i) { ClassData.Method method = methods[i]; int adjustedMethodIndex = adjustMethodIdIndex(method.methodIndex); int adjustedCodeOffset = adjustCodeOffset(method.codeOffset); adjustedMethods[i] = new ClassData.Method( adjustedMethodIndex, method.accessFlags, adjustedCodeOffset ); } return adjustedMethods; }
private ClassData.Method[] adjustMethods(ClassData.Method[] methods) { ClassData.Method[] adjustedMethods = new ClassData.Method[methods.length]; for (int i = 0; i < methods.length; ++i) { ClassData.Method method = methods[i]; int adjustedMethodIndex = adjustMethodIdIndex(method.methodIndex); int adjustedCodeOffset = adjustCodeOffset(method.codeOffset); adjustedMethods[i] = new ClassData.Method( adjustedMethodIndex, method.accessFlags, adjustedCodeOffset ); } return adjustedMethods; }
private ClassData.Method[] readMethods(int count) { ClassData.Method[] result = new ClassData.Method[count]; int methodIndex = 0; for (int i = 0; i < count; i++) { methodIndex += readUleb128(); // method index diff int accessFlags = readUleb128(); int codeOff = readUleb128(); result[i] = new ClassData.Method(methodIndex, accessFlags, codeOff); } return result; }