Method lrs::file::File::gather_write_at

Writes from multiple buffers to an offset in the file.

Syntax

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

Arguments

NameDescription
bufs

The buffers that will be written to the file.

off

The position in the file at which to write.

Return value

Returns the number of bytes written.

Remarks

This function does not change the read/write position of the file description.

This operation is atomic in the sense that the write operations will not be interleaved with other operations on the same 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