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

Method vmctx_vmfunction_import

crates/environ/src/vmoffsets.rs:1089–1093  ·  view source on GitHub ↗
(&self, index: FuncIndex)

Source from the content-addressed store, hash-verified

1087 /// Return the offset to `VMFunctionImport` index `index`.
1088 #[inline]
1089 pub fn vmctx_vmfunction_import(&self, index: FuncIndex) -> u32 {
1090 assert!(index.as_u32() < self.num_imported_functions);
1091 self.vmctx_imported_functions_begin()
1092 + index.as_u32() * u32::from(self.size_of_vmfunction_import())
1093 }
1094
1095 /// Return the offset to `VMTable` index `index`.
1096 #[inline]

Calls 4

fromFunction · 0.85
as_u32Method · 0.45

Tested by

no test coverage detected