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 mutateFileDelta offset
Number of bytes to adjust offset byWhence whence
What the offset is relative to Output:Filesize *fd
The new offset relative to the start of the file