Method lrs::file::File::write_at

Writes to an offset in the file.

Syntax

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

Arguments

NameDescription
buf

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

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