Method lrs::file::File::gather_write

Writes from multiple buffers to the file.

Syntax

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

Arguments

NameDescription
bufs

The buffers that will be written to the file.

Return value

Returns the number of bytes written.

Remarks

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