Function wasi::fd_pwrite

source · []
pub unsafe fn fd_pwrite(
    fd: Fd,
    iovs: CiovecArray<'_>,
    offset: Filesize
) -> Result<Size, Errno>
Expand description

Write to a file descriptor, without using and updating the file descriptor’s offset. Note: This is similar to pwritev in POSIX.

Parameters

  • iovs - List of scatter/gather vectors from which to retrieve data.
  • offset - The offset within the file at which to write.

Return

The number of bytes written.