wasi

Function fd_seek

Source
pub unsafe fn fd_seek(
    fd: Fd,
    offset: Filedelta,
    whence: Whence,
) -> Result<Filesize, Errno>
Expand description

Move the offset of a file descriptor. Note: This is similar to lseek in POSIX.

§Parameters

  • offset - The number of bytes to move.
  • whence - The base from which the offset is relative.

§Return

The new offset of the file descriptor, relative to the start of the file.