Reads data from a position in a file descriptor into the pipe.
impl Pipe {
fn read_from_at<T>(&self, src: &T, at: &mut u64, n: usize, flags: SpliceFlags) -> Result<usize, Errno>
where T: FDContainer,
}| Name | Description |
|---|---|
| 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. |
Returns the number of bytes read.
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.