[go: up one dir, main page]

splice_exact

Function splice_exact 

Source
pub fn splice_exact(
    source: &impl AsFd,
    target: &impl AsFd,
    len: usize,
) -> Result<()>
Expand description

Splice wrapper which fully finishes the write.

Exactly len bytes are moved from source into target.

Panics if source runs out of data before len bytes have been moved.