public DiskRangeList[] listToArray() {
    DiskRangeList[] result = new DiskRangeList[listSize()];
    int i = 0;
    DiskRangeList current = this.next;
    while (current != null) {
      result[i] = current;
      ++i;
      current = current.next;
    }
    return result;
  }
Splits current element in the list, using DiskRange::slice.
@param cOffset the position to split the list
@return the split list
storage-api/src/java/org/apache/hadoop/hive/common/io/DiskRangeList.java