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

Method imported_function

crates/wasmtime/src/runtime/vm/instance.rs:420–422  ·  view source on GitHub ↗

Return the indexed `VMFunctionImport`.

(&self, index: FuncIndex)

Source from the content-addressed store, hash-verified

418
419 /// Return the indexed `VMFunctionImport`.
420 fn imported_function(&self, index: FuncIndex) -> &VMFunctionImport {
421 unsafe { self.vmctx_plus_offset(self.offsets().vmctx_vmfunction_import(index)) }
422 }
423
424 /// Return the index `VMTableImport`.
425 fn imported_table(&self, index: TableIndex) -> &VMTableImport {

Callers 1

get_func_refMethod · 0.80

Calls 3

vmctx_plus_offsetMethod · 0.80
offsetsMethod · 0.45

Tested by

no test coverage detected