Function wasmer_wasix::syscalls::wasi::fd_seek::fd_seek

source ·
pub fn fd_seek<M: MemorySize>(
    ctx: FunctionEnvMut<'_, WasiEnv>,
    fd: Fd,
    offset: FileDelta,
    whence: Whence,
    newoffset: WasmPtr<Filesize, M>,
) -> Result<Errno, WasiError>
Expand description

§fd_seek()

Update file descriptor offset Inputs:

  • Fd fd File descriptor to mutate
  • FileDelta offset Number of bytes to adjust offset by
  • Whence whence What the offset is relative to Output:
  • Filesize *fd The new offset relative to the start of the file