pub fn byte_ranges(length: u64) -> impl Iterator<Item = (u64, u64)>Expand description
Calculates bytes ranges for the given length parameter and the chunk size of 50MB.
ยงExample
let mut iter = byte_ranges(52 * 1024 * 1024);
assert_eq!(iter.next(), Some((0, 52428799)));
assert_eq!(iter.next(), Some((52428800, 54525951)));
assert_eq!(iter.next(), None);