Function pwrite
pub fn pwrite<Fd>(fd: Fd, buf: &[u8], offset: u64) -> Result<usize, Errno> ⓘwhere
Fd: AsFd,
Available on crate feature
dep_rustix
only.Expand description
pwrite(fd, bufs)
—Writes to a file at a given position.
Contrary to POSIX, on many popular platforms including Linux and FreeBSD, if the file is opened in append mode, this ignores the offset appends the data to the end of the file.