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

Method bytecode

crates/debugger/src/host/api.rs:426–429  ·  view source on GitHub ↗
(&mut self, self_: Resource<Module>)

Source from the content-addressed store, hash-verified

424 }
425
426 async fn bytecode(&mut self, self_: Resource<Module>) -> Result<Option<Vec<u8>>> {
427 let module = self.get(&self_)?;
428 Ok(module.debug_bytecode().map(|b| b.to_vec()))
429 }
430
431 async fn clone(&mut self, self_: Resource<Module>) -> Result<Resource<Module>> {
432 let module = self.get(&self_)?.clone();

Callers

nothing calls this directly

Calls 5

OkFunction · 0.85
debug_bytecodeMethod · 0.80
getMethod · 0.45
mapMethod · 0.45
to_vecMethod · 0.45

Tested by

no test coverage detected