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

Method address_map

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

Get the address map for this component's `.text` section. See [`Module::address_map`] for more details.

(&self)

Source from the content-addressed store, hash-verified

586 ///
587 /// See [`Module::address_map`] for more details.
588 pub fn address_map(&self) -> Option<impl Iterator<Item = (usize, Option<u32>)> + '_> {
589 Some(
590 wasmtime_environ::iterate_address_map(self.engine_code().address_map_data())?
591 .map(|(offset, file_pos)| (offset as usize, file_pos.file_offset())),
592 )
593 }
594
595 /// Same as [`Module::serialize`], except for a component.
596 ///

Callers

nothing calls this directly

Calls 5

iterate_address_mapFunction · 0.85
file_offsetMethod · 0.80
mapMethod · 0.45
address_map_dataMethod · 0.45
engine_codeMethod · 0.45

Tested by

no test coverage detected