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

Class StoreCode

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

A `Store`-local instance of code. This type encapsulates executable code within the context of instantiation in a single store. It may be an unmodified pointer to the read-only original code, or it may be locally patched for this store due to debugging or instrumentation settings. Most things that the runtime will want to do with a module's image will require the `EngineCode` -- all metadata liv

Source from the content-addressed store, hash-verified

312/// above. The runtime data structures will have scattered `Arc`s to
313/// the `EngineCode` but only one
314pub struct StoreCode(StoreCodeStorage);
315
316enum StoreCodeStorage {
317 Shared(Arc<CodeMemory>),

Callers 1

newMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected