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

Method raw_addr_range

crates/wasmtime/src/runtime/code_memory.rs:621–625  ·  view source on GitHub ↗

Get the raw address range of this CodeMemory.

(&self)

Source from the content-addressed store, hash-verified

619
620 /// Get the raw address range of this CodeMemory.
621 pub(crate) fn raw_addr_range(&self) -> Range<usize> {
622 let start = self.text().as_ptr().addr();
623 let end = start + self.text().len();
624 start..end
625 }
626
627 /// Create a "deep clone": a separate CodeMemory for the same code
628 /// that can be patched or mutated independently. Also returns a

Callers 3

newMethod · 0.80
text_rangeMethod · 0.80
dropMethod · 0.80

Calls 4

addrMethod · 0.45
as_ptrMethod · 0.45
textMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected