wasmer_wasix::syscalls::wasix::fd_pipe

Function fd_pipe

Source
pub fn fd_pipe<M: MemorySize>(
    ctx: FunctionEnvMut<'_, WasiEnv>,
    ro_read_fd: WasmPtr<Fd, M>,
    ro_write_fd: WasmPtr<Fd, M>,
) -> Result<Errno, WasiError>
Expand description

ยงfd_pipe()

Creates ta pipe that feeds data between two file handles Output:

  • Fd First file handle that represents the read end of the pipe
  • Fd Second file handle that represents the write end of the pipe