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

Method extract_table

crates/wasmtime/src/runtime/component/instance.rs:940–948  ·  view source on GitHub ↗
(&mut self, store: &mut StoreOpaque, table: &ExtractTable)

Source from the content-addressed store, hash-verified

938 }
939
940 fn extract_table(&mut self, store: &mut StoreOpaque, table: &ExtractTable) {
941 let export = match lookup_vmexport(store, self.id, &table.export) {
942 crate::runtime::vm::Export::Table(t) => t,
943 _ => unreachable!(),
944 };
945 let import = export.vmimport(store);
946 self.instance_mut(store)
947 .set_runtime_table(table.index, import);
948 }
949
950 fn build_imports<'b>(
951 &mut self,

Callers 1

runMethod · 0.80

Calls 4

lookup_vmexportFunction · 0.85
set_runtime_tableMethod · 0.80
vmimportMethod · 0.45
instance_mutMethod · 0.45

Tested by

no test coverage detected