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

Method stream_read

crates/wasmtime/src/runtime/component/concurrent.rs:4251–4273  ·  view source on GitHub ↗
(
        &mut self,
        instance: Instance,
        caller: RuntimeComponentInstanceIndex,
        ty: TypeStreamTableIndex,
        options: OptionsIndex,
        stream: u32,
        address: u

Source from the content-addressed store, hash-verified

4249 }
4250
4251 fn stream_read(
4252 &mut self,
4253 instance: Instance,
4254 caller: RuntimeComponentInstanceIndex,
4255 ty: TypeStreamTableIndex,
4256 options: OptionsIndex,
4257 stream: u32,
4258 address: u32,
4259 count: u32,
4260 ) -> Result<u32> {
4261 instance
4262 .guest_read(
4263 StoreContextMut(self),
4264 caller,
4265 TransmitIndex::Stream(ty),
4266 options,
4267 None,
4268 stream,
4269 address,
4270 count,
4271 )
4272 .map(|result| result.encode())
4273 }
4274
4275 fn future_drop_writable(
4276 &mut self,

Callers 1

stream_readFunction · 0.80

Calls 4

StoreContextMutClass · 0.85
guest_readMethod · 0.80
mapMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected