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

Method validate_store

crates/tinywasm/src/instance.rs:169–175  ·  view source on GitHub ↗
(&self, store: &Store)

Source from the content-addressed store, hash-verified

167
168 #[inline]
169 pub(crate) fn validate_store(&self, store: &Store) -> Result<()> {
170 if self.0.store_id != store.id() {
171 cold_path();
172 return Err(Trap::InvalidStore.into());
173 }
174 Ok(())
175 }
176
177 /// Get the module instance's address
178 pub fn id(&self) -> ModuleInstanceAddr {

Callers 7

callMethod · 0.45
call_resumableMethod · 0.45
call_untypedMethod · 0.45
func_untypedMethod · 0.45
func_by_indexMethod · 0.45
start_funcMethod · 0.45
linkMethod · 0.45

Calls 1

idMethod · 0.45

Tested by

no test coverage detected