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

Method wasm_data

crates/wasmtime/src/runtime/vm.rs:367–372  ·  view source on GitHub ↗

A slice pointing to all data that is referenced by this instance.

(&self)

Source from the content-addressed store, hash-verified

365
366 /// A slice pointing to all data that is referenced by this instance.
367 fn wasm_data(&self) -> &[u8] {
368 match self {
369 ModuleRuntimeInfo::Module(m) => m.engine_code().wasm_data(),
370 ModuleRuntimeInfo::Bare(_) => &[],
371 }
372 }
373
374 /// Returns an array, indexed by `ModuleInternedTypeIndex` of all
375 /// `VMSharedSignatureIndex` entries corresponding to the `SignatureIndex`.

Callers

nothing calls this directly

Calls 1

engine_codeMethod · 0.45

Tested by

no test coverage detected