# Function rustix::io::pwritev

source · [−]

    pub fn pwritev<Fd: AsFd>(
        fd: Fd,
        bufs: &[IoSlice<'_>],
        offset: u64
    ) -> Result<usize>

Expand description

`pwritev(fd, bufs, offset)`—Writes to a file at a given position from multiple buffers.

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.

## References

- Linux