Function copy_file_range

Source
pub fn copy_file_range<P: AsRef<Path>, Q: AsRef<Path>>(
    src: P,
    src_offset: u64,
    src_length: u64,
    dest: Q,
    dest_offset: u64,
) -> Result<u64>
Expand description

Naively copy a range of bytes from one file to another

This function is mainly implemented as a fallback for clone_or_copy_file_range.

Returns Ok(copied_byte_count) on success.