private ClassData.Field[] readFields(int count) {
      ClassData.Field[] result = new ClassData.Field[count];
      int fieldIndex = 0;
      for (int i = 0; i < count; i++) {
        fieldIndex += readUleb128(); // field index diff
        int accessFlags = readUleb128();
        result[i] = new ClassData.Field(fieldIndex, accessFlags);
      }
      return result;
    }
Look up a descriptor index from a type index. Cheaper than: {@code
open(tableOfContents.typeIds.off + (index * SizeOf.TYPE_ID_ITEM)).readInt();}
android/android_framework/dex-maker/src/main/java/com/android/dex/Dex.java