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

Method get_table

crates/debugger/src/host/api.rs:342–355  ·  view source on GitHub ↗
(
        &mut self,
        self_: Resource<Instance>,
        d: Resource<Debuggee>,
        table_index: u32,
    )

Source from the content-addressed store, hash-verified

340 }
341
342 async fn get_table(
343 &mut self,
344 self_: Resource<Instance>,
345 d: Resource<Debuggee>,
346 table_index: u32,
347 ) -> Result<Resource<Table>> {
348 let instance = *self.get(&self_)?;
349 let d = debugger(self, &d)?;
350 let table = d
351 .instance_get_table(instance, table_index)
352 .await?
353 .ok_or(wit::Error::InvalidEntity)?;
354 Ok(self.push(table)?)
355 }
356
357 async fn get_func(
358 &mut self,

Callers

nothing calls this directly

Calls 5

debuggerFunction · 0.85
OkFunction · 0.85
instance_get_tableMethod · 0.80
getMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected