Method lrs::file::File::scatter_read_at

Reads from a position in the file into multiple buffers.

Syntax

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

Arguments

NameDescription
bufs

The buffers 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.

This operation is atomic in the sense that the read operations will not be interleaved with other operations on the same file description.

If the length of the buffer is 0, the meaning of a 0 return value is unspecified. Otherwise a return value of 0 signals End-Of-File.

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