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

Method code_memory_mut

crates/wasmtime/src/runtime/code.rs:370–375  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

368 /// owned only by this StoreCode.
369 #[cfg(feature = "debug")]
370 pub fn code_memory_mut(&mut self) -> Option<&mut CodeMemory> {
371 match &mut self.0 {
372 StoreCodeStorage::Shared(_) => None,
373 StoreCodeStorage::Private(m) => Some(m),
374 }
375 }
376
377 /// Provide the address range for this StoreCode.
378 pub fn text_range(&self) -> Range<StoreCodePC> {

Callers 3

patch_new_moduleMethod · 0.80
get_code_memoryMethod · 0.80
dropMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected