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

Method validate_store

crates/tinywasm/src/reference.rs:28–33  ·  view source on GitHub ↗
(&self, store: &Store)

Source from the content-addressed store, hash-verified

26
27 #[inline]
28 pub(crate) fn validate_store(&self, store: &Store) -> Result<(), Trap> {
29 if self.store_id != store.id() {
30 return Err(Trap::InvalidStore);
31 }
32 Ok(())
33 }
34}
35
36/// A memory instance in a store.

Callers 3

instanceMethod · 0.45
instance_mutMethod · 0.45
growMethod · 0.45

Calls 1

idMethod · 0.45

Tested by

no test coverage detected