MCPcopy Index your code
hub / github.com/explodingcamera/tinywasm / get_module_instance

Method get_module_instance

crates/tinywasm/src/store/mod.rs:82–84  ·  view source on GitHub ↗

Get a module instance by the internal id

(&self, addr: ModuleInstanceAddr)

Source from the content-addressed store, hash-verified

80
81 /// Get a module instance by the internal id
82 pub fn get_module_instance(&self, addr: ModuleInstanceAddr) -> Option<ModuleInstance> {
83 self.module_instances.get(addr as usize).cloned()
84 }
85
86 #[inline]
87 pub(crate) fn get_module_instance_internal(&self, addr: ModuleInstanceAddr) -> ModuleInstance {

Callers 2

exec_fn_instanceFunction · 0.80
moduleMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected