public int size() {
      return header
          + idsDefs
          + mapList
          + typeList
          + classData
          + code
          + stringData
          + debugInfo
          + encodedArray
          + annotationsDirectory
          + annotationsSet
          + annotationsSetRefList
          + annotation;
    }
Compute sizes for merging several dexes.
android/android_framework/dex-maker/src/main/java/com/android/dx/merge/DexMerger.java