@Override protected int getItemSize(AnnotationsDirectory item) { return item.byteCountInDex(); }
public AnnotationsDirectory readAnnotationsDirectory() { int off = data.position(); int classAnnotationsOffset = readInt(); int fieldsSize = readInt(); int methodsSize = readInt(); int parameterListSize = readInt(); int[][] fieldAnnotations = new int[fieldsSize][2]; for (int i = 0; i < fieldsSize; ++i) { // field index fieldAnnotations[i][0] = readInt(); // annotations offset fieldAnnotations[i][1] = readInt(); } int[][] methodAnnotations = new int[methodsSize][2]; for (int i = 0; i < methodsSize; ++i) { // method index methodAnnotations[i][0] = readInt(); // annotation set offset methodAnnotations[i][1] = readInt(); } int[][] parameterAnnotations = new int[parameterListSize][2]; for (int i = 0; i < parameterListSize; ++i) { // method index parameterAnnotations[i][0] = readInt(); // annotations offset parameterAnnotations[i][1] = readInt(); } return new AnnotationsDirectory(off, classAnnotationsOffset, fieldAnnotations, methodAnnotations, parameterAnnotations); }
return new AnnotationsDirectory( annotationsDirectory.off, adjustedClassAnnotationsOffset, adjustedFieldAnnotations, adjustedMethodAnnotations, adjustedParameterAnnotations
return new AnnotationsDirectory( annotationsDirectory.off, adjustedClassAnnotationsOffset, adjustedFieldAnnotations, adjustedMethodAnnotations, adjustedParameterAnnotations
@Override protected int getItemSize(AnnotationsDirectory item) { return item.byteCountInDex(); }
public AnnotationsDirectory readAnnotationsDirectory() { int off = data.position(); int classAnnotationsOffset = readInt(); int fieldsSize = readInt(); int methodsSize = readInt(); int parameterListSize = readInt(); int[][] fieldAnnotations = new int[fieldsSize][2]; for (int i = 0; i < fieldsSize; ++i) { // field index fieldAnnotations[i][0] = readInt(); // annotations offset fieldAnnotations[i][1] = readInt(); } int[][] methodAnnotations = new int[methodsSize][2]; for (int i = 0; i < methodsSize; ++i) { // method index methodAnnotations[i][0] = readInt(); // annotation set offset methodAnnotations[i][1] = readInt(); } int[][] parameterAnnotations = new int[parameterListSize][2]; for (int i = 0; i < parameterListSize; ++i) { // method index parameterAnnotations[i][0] = readInt(); // annotations offset parameterAnnotations[i][1] = readInt(); } return new AnnotationsDirectory(off, classAnnotationsOffset, fieldAnnotations, methodAnnotations, parameterAnnotations); }
@Override protected int getItemSize(AnnotationsDirectory item) { return item.byteCountInDex(); }
return new AnnotationsDirectory( annotationsDirectory.off, adjustedClassAnnotationsOffset, adjustedFieldAnnotations, adjustedMethodAnnotations, adjustedParameterAnnotations
@Override protected int getItemSize(AnnotationsDirectory item) { return item.byteCountInDex(); }