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

Method text

crates/wasmtime/src/runtime/component/component.rs:572–574  ·  view source on GitHub ↗

Get this component's code object's `.text` section, containing its compiled executable code.

(&self)

Source from the content-addressed store, hash-verified

570 /// Get this component's code object's `.text` section, containing its
571 /// compiled executable code.
572 pub fn text(&self) -> &[u8] {
573 self.engine_code().text()
574 }
575
576 /// Get information about functions in this component's `.text` section:
577 /// their module index, function index, name, and offset+length.

Callers 1

func_loc_to_pointerMethod · 0.45

Calls 1

engine_codeMethod · 0.45

Tested by

no test coverage detected