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

Method function

crates/wasmtime/src/runtime/code.rs:434–437  ·  view source on GitHub ↗
(&self, key: FuncKey)

Source from the content-addressed store, hash-verified

432 /// `key` points to.
433 #[inline]
434 pub fn function(&self, key: FuncKey) -> &[u8] {
435 let range = self.module.compiled_module().function_range(key);
436 &self.store_code.text()[range]
437 }
438}

Calls 3

function_rangeMethod · 0.80
compiled_moduleMethod · 0.80
textMethod · 0.45

Tested by 1