Method lrs::pipe::Pipe::read_from_at

Reads data from a position in a file descriptor into the pipe.

Syntax

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

Arguments

NameDescription
src

The source from which to read.

at

The position at which to read.

n

The number of bytes to read.

flags

Flags to use while reading.

Return value

Returns the number of bytes read.

Remarks

self must be the write-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