pub fn clone_or_copy_file_range<P: AsRef<Path>, Q: AsRef<Path>>(
src: P,
src_offset: u64,
src_length: u64,
dest: Q,
dest_offset: u64,
) -> Result<Option<u64>>
Expand description
Tries to clone a range of bytes to another file, falling back to copy_file_range on error
Returns Ok(None)
on successful clone, Ok(Some(copied_byte_count))
on successful naive copy.