public int getCallSiteIdItemOffset(int callSiteIndex) { MapItem mapItem = getMapItemForSection(ItemType.CALL_SITE_ID_ITEM); if (mapItem == null || callSiteIndex >= mapItem.getItemCount()) { throw new InvalidItemIndex(callSiteIndex, "Call site index out of bounds: %d", callSiteIndex); } return mapItem.getOffset() + callSiteIndex * CallSiteIdItem.ITEM_SIZE; }
public int getMethodHandleItemOffset(int methodHandleIndex) { MapItem mapItem = getMapItemForSection(ItemType.METHOD_HANDLE_ITEM); if (mapItem == null || methodHandleIndex >= mapItem.getItemCount()) { throw new InvalidItemIndex(methodHandleIndex , "Method handle index out of bounds: %d", methodHandleIndex); } return mapItem.getOffset() + methodHandleIndex * MethodHandleItem.ITEM_SIZE; }
public SectionAnnotator(@Nonnull DexAnnotator annotator, @Nonnull MapItem mapItem) { this.annotator = annotator; this.dexFile = annotator.dexFile; this.itemType = mapItem.getType(); this.sectionOffset = mapItem.getOffset(); this.itemCount = mapItem.getItemCount(); }
public SectionAnnotator(@Nonnull DexAnnotator annotator, @Nonnull MapItem mapItem) { this.annotator = annotator; this.dexFile = annotator.dexFile; this.itemType = mapItem.getType(); this.sectionOffset = mapItem.getOffset(); this.itemCount = mapItem.getItemCount(); }
public SectionAnnotator(@Nonnull DexAnnotator annotator, @Nonnull MapItem mapItem) { this.annotator = annotator; this.dexFile = annotator.dexFile; this.itemType = mapItem.getType(); this.sectionOffset = mapItem.getOffset(); this.itemCount = mapItem.getItemCount(); }
public int getCallSiteIdItemOffset(int callSiteIndex) { MapItem mapItem = getMapItemForSection(ItemType.CALL_SITE_ID_ITEM); if (mapItem == null || callSiteIndex >= mapItem.getItemCount()) { throw new InvalidItemIndex(callSiteIndex, "Call site index out of bounds: %d", callSiteIndex); } return mapItem.getOffset() + callSiteIndex * CallSiteIdItem.ITEM_SIZE; }
public int getMethodHandleItemOffset(int methodHandleIndex) { MapItem mapItem = getMapItemForSection(ItemType.METHOD_HANDLE_ITEM); if (mapItem == null || methodHandleIndex >= mapItem.getItemCount()) { throw new InvalidItemIndex(methodHandleIndex , "Method handle index out of bounds: %d", methodHandleIndex); } return mapItem.getOffset() + methodHandleIndex * MethodHandleItem.ITEM_SIZE; }