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

Method function_range

crates/wasmtime/src/runtime/instantiate.rs:127–132  ·  view source on GitHub ↗
(&self, key: FuncKey)

Source from the content-addressed store, hash-verified

125 /// points to.
126 #[inline]
127 pub fn function_range(&self, key: FuncKey) -> Range<usize> {
128 let loc = self.func_loc(key);
129 let start = usize::try_from(loc.start).unwrap();
130 let end = usize::try_from(loc.start + loc.length).unwrap();
131 start..end
132 }
133
134 /// Get the Wasm-to-array trampoline for the given signature, as a
135 /// range in the text segment.

Callers 3

functionMethod · 0.80

Calls 2

func_locMethod · 0.45
unwrapMethod · 0.45

Tested by

no test coverage detected