MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / fd_write

Method fd_write

crates/wasi/src/p0.rs:261–270  ·  view source on GitHub ↗
(
        &mut self,
        memory: &mut GuestMemory<'_>,
        fd: types::Fd,
        ciovs: types::CiovecArray,
    )

Source from the content-addressed store, hash-verified

259 }
260
261 async fn fd_write(
262 &mut self,
263 memory: &mut GuestMemory<'_>,
264 fd: types::Fd,
265 ciovs: types::CiovecArray,
266 ) -> Result<types::Size, Error> {
267 assert_ciovec_array_same();
268 let result = Snapshot1::fd_write(self, memory, fd.into(), ciovs.cast()).await?;
269 Ok(result)
270 }
271
272 async fn fd_pwrite(
273 &mut self,

Callers

nothing calls this directly

Calls 4

assert_ciovec_array_sameFunction · 0.85
fd_writeFunction · 0.85
OkFunction · 0.85
castMethod · 0.45

Tested by

no test coverage detected