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

Method code_memory

crates/wasmtime/src/runtime/code.rs:359–365  ·  view source on GitHub ↗

Provide the underlying CodeMemory.

(&self)

Source from the content-addressed store, hash-verified

357
358 /// Provide the underlying CodeMemory.
359 pub fn code_memory(&self) -> &CodeMemory {
360 match &self.0 {
361 StoreCodeStorage::Shared(m) => m,
362 #[cfg(feature = "debug")]
363 StoreCodeStorage::Private(m) => m,
364 }
365 }
366
367 /// Provide a mutable reference to a CodeMemory that is privately
368 /// owned only by this StoreCode.

Callers 6

decodeMethod · 0.80
computeMethod · 0.80
text_rangeMethod · 0.80
textMethod · 0.80
compute_handlerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected