Method lrs::file::File::read_at

Reads from a position in the file.

Syntax

impl File {
    fn read_at(&self, buf: &mut [u8], off: i64) -> Result<usize, Errno>
}

Arguments

NameDescription
buf

The buffer that will be filled by the operation.

off

The position in the file at which to read.

Return value

Returns the number of bytes read.

Remarks

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.

See also