public short[] readShortArray(int length) {
      if (length == 0) {
        return EMPTY_SHORT_ARRAY;
      }
      short[] result = new short[length];
      for (int i = 0; i < length; i++) {
        result[i] = readShort();
      }
      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