Given a range of items having size convert given indices to the
cumulative size of all elements from the first one to elements with
given indices
data given range those elements have some size
spacing is additional size for spacing between range elements
start index is the index of the first range element whose size we want to get
last index is the index of the last given range element whose size we want to get
start, finish are sizes of first and last elements
Given a range of items having size convert given indices to the cumulative size of all elements from the first one to elements with given indices
data given range those elements have some size spacing is additional size for spacing between range elements start index is the index of the first range element whose size we want to get last index is the index of the last given range element whose size we want to get start, finish are sizes of first and last elements