pub fn fd_dup<M: MemorySize>(
ctx: FunctionEnvMut<'_, WasiEnv>,
fd: Fd,
ret_fd: WasmPtr<Fd, M>,
) -> Result<Errno, WasiError>
Expand description
§fd_dup()
Duplicates the file handle Inputs:
Fd fd
File handle to be cloned Outputs:Fd fd
The new file handle that is a duplicate of the original