Method lrs::pipe::Pipe::write_to_at

Writes data from this pipe to a position in a file descriptor.

Syntax

impl Pipe {
    fn write_to_at<T>(&self, dst: &T, at: &mut u64, n: usize, flags: SpliceFlags) -> Result<usize, Errno>
        where T: FDContainer,
}

Arguments

NameDescription
dst

The file descriptor to write to.

at

The position at which to write.

n

The number of bytes to write.

flags

Flags to use while writing.

Return value

Returns the number of bytes written.

Remarks

self must be the read-end of a pipe. The read-position in the file will not be changed.

If lrs was compiled with the retry option, this call will automatically retry the operation if the call was interrupted by a signal.

See also