private static int writeSize(List<? extends OffsettedItem> items) {
    /*
     * This class assumes all included items are the same size,
     * an assumption which is verified in place0().
     */
    OffsettedItem first = items.get(0);
    return (items.size() * first.writeSize()) + getAlignment(items);
  }
Calculates the write size for the given list.

@param items {@code non-null;} the list in question
@return {@code >= 0;} the write size
android/android_framework/dex-maker/src/main/java/com/android/dx/dex/file/UniformListItem.java