fn compute_total_range_size(ranges: &[Range<u64>]) -> u64
Computes the max possible buffer size to read the given ranges.
ranges