add getIndexByInfiniteIndexWithOffset