pub(crate) fn split(total: u64, connections: usize) -> Vec<Part>
A file of total bytes split into at most connections parts of nearly equal size, none smaller than MIN_PART_SIZE unless the whole file is.
total
connections
MIN_PART_SIZE