public ClassDef readClassDef() {
      int offset = getPosition();
      int type = readInt();
      int accessFlags = readInt();
      int supertype = readInt();
      int interfacesOffset = readInt();
      int sourceFileIndex = readInt();
      int annotationsOffset = readInt();
      int classDataOffset = readInt();
      int staticValuesOffset = readInt();
      return new ClassDef(
          Dex.this,
          offset,
          type,
          accessFlags,
          supertype,
          interfacesOffset,
          sourceFileIndex,
          annotationsOffset,
          classDataOffset,
          staticValuesOffset);
    }
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