MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / get_memory

Method get_memory

crates/fuzzing/src/oracles/diff_wasmi.rs:154–165  ·  view source on GitHub ↗
(&mut self, name: &str, shared: bool)

Source from the content-addressed store, hash-verified

152 }
153
154 fn get_memory(&mut self, name: &str, shared: bool) -> Option<Vec<u8>> {
155 assert!(!shared);
156 Some(
157 self.instance
158 .get_export(&self.store, name)
159 .unwrap()
160 .into_memory()
161 .unwrap()
162 .data(&self.store)
163 .to_vec(),
164 )
165 }
166}
167
168impl From<&DiffValue> for wasmi::Val {

Callers

nothing calls this directly

Calls 5

into_memoryMethod · 0.80
to_vecMethod · 0.45
dataMethod · 0.45
unwrapMethod · 0.45
get_exportMethod · 0.45

Tested by

no test coverage detected