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

Method write

crates/wasi-io/src/impls.rs:131–134  ·  view source on GitHub ↗
(&mut self, stream: Resource<DynOutputStream>, bytes: Vec<u8>)

Source from the content-addressed store, hash-verified

129 }
130
131 fn write(&mut self, stream: Resource<DynOutputStream>, bytes: Vec<u8>) -> StreamResult<()> {
132 self.get_mut(&stream)?.write(bytes.into())?;
133 Ok(())
134 }
135
136 fn subscribe(&mut self, stream: Resource<DynOutputStream>) -> Result<Resource<DynPollable>> {
137 subscribe(self, stream)

Callers 11

write_to_guestMethod · 0.45
insert_atMethod · 0.45
pushMethod · 0.45
deleteMethod · 0.45
renumberMethod · 0.45
poll_oneoffMethod · 0.45
poll_oneoffMethod · 0.45
open_file_Method · 0.45
write_zeroesMethod · 0.45
spliceMethod · 0.45

Calls 2

OkFunction · 0.85
get_mutMethod · 0.45

Tested by

no test coverage detected