copy_file_bytes

Function copy_file_bytes 

Source
pub fn copy_file_bytes(
    infd: &File,
    outfd: &File,
    bytes: u64,
) -> Result<usize, Error>
Expand description

File copy operation that defers file offset tracking to the underlying call. On Linux this attempts to use copy_file_range and falls back to user-space if that is not available.