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

Method bytecode

crates/wasmtime/src/runtime/instantiate.rs:238–241  ·  view source on GitHub ↗

Returns the original Wasm bytecode for this module, if it is available.

(&self)

Source from the content-addressed store, hash-verified

236
237 /// Returns the original Wasm bytecode for this module, if it is available.
238 pub fn bytecode(&self) -> Option<&[u8]> {
239 self.engine_code
240 .wasm_bytecode_for_module(self.module.module_index)
241 }
242
243 pub(crate) fn index(&self) -> &Arc<CompiledFunctionsTable> {
244 &self.index

Callers 3

disas_pulleyFunction · 0.45
module_idMethod · 0.45
debug_bytecodeMethod · 0.45

Calls 1

Tested by

no test coverage detected