MCPcopy Create free account
hub / github.com/explodingcamera/tinywasm / add_instance

Method add_instance

crates/tinywasm/src/store/mod.rs:309–312  ·  view source on GitHub ↗
(&mut self, instance: ModuleInstance)

Source from the content-addressed store, hash-verified

307 }
308
309 pub(crate) fn add_instance(&mut self, instance: ModuleInstance) {
310 debug_assert!(instance.idx() == self.module_instances.len() as ModuleInstanceAddr);
311 self.module_instances.push(instance);
312 }
313
314 /// Get the global at the actual index in the store
315 #[doc(hidden)]

Callers 1

instantiate_no_startMethod · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected