[−][src]Function wasi::fd_seek
pub unsafe fn fd_seek(
fd: Fd,
offset: Filedelta,
whence: Whence
) -> Result<Filesize>
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
newoffset- The new offset of the file descriptor, relative to the start of the file.