Reads from a position in the file.
impl File {
fn read_at(&self, buf: &mut [u8], off: i64) -> Result<usize, Errno>
}| Name | Description |
|---|---|
| buf | The buffer that will be filled by the operation. |
| off | The position in the file at which to read. |
Returns the number of bytes read.
This function does not change the read/write position of the file description.
If lrs was compiled with the retry option, this call will automatically retry the operation if the call was interrupted by a signal.