Method lrs::file::File::write

Writes to the file.

Syntax

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

Arguments

NameDescription
buf

The buffer that will be written to the file.

Return value

Returns the number of bytes written.

Remarks

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