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

Method module

crates/tinywasm/src/func.rs:262–266  ·  view source on GitHub ↗

Get the module instance.

(&self)

Source from the content-addressed store, hash-verified

260
261 /// Get the module instance.
262 pub fn module(&self) -> crate::ModuleInstance {
263 self.store.get_module_instance(self.module_addr).unwrap_or_else(|| {
264 unreachable!("invalid module instance address in host function context: {}", self.module_addr)
265 })
266 }
267
268 /// Get a memory export.
269 pub fn memory(&self, name: &str) -> Result<crate::Memory> {

Callers 8

mainFunction · 0.80
memoryMethod · 0.80
extern_itemMethod · 0.80
tableMethod · 0.80
global_getMethod · 0.80
globalMethod · 0.80
global_setMethod · 0.80

Calls 1

get_module_instanceMethod · 0.80

Tested by

no test coverage detected