fn download_footer(file: CachedFile) -> u64 {
        let end_length = 1024 * 1024;
        let (end_start, end_length) = match file.len().checked_sub(end_length) {
            Some(val) => (val, end_length),
            None => (0, file.len()),
        };
        file.prefetch(end_start, end_length as usize);
        end_start
    }
// returns the start of the downloaded chunk
returns the start of the downloaded chunk
returns the start of the downloaded chunk
fn download_footer(file: CachedFile) -> u64 {
        let end_length = 1024 * 1024;
        let (end_start, end_length) = match file.len().checked_sub(end_length) {
            Some(val) => (val, end_length),
            None => (0, file.len()),
        };
        file.prefetch(end_start, end_length as usize);
        end_start
    }
fn download_footer ( file : CachedFile ) -> u64 { let end_length = 1024 * 1024 ; let ( end_start , end_length ) = match file . len ( ) . checked_sub ( end_length ) { Some ( val ) => ( val , end_length ) , None => ( 0 , file . len ( ) ) , } ; file . prefetch ( end_start , end_length as usize ) ; end_start }
returns the start of the downloaded chunk
returns the start of the downloaded chunk
file
CachedFile
file
CachedFile