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

Method image_range

crates/wasmtime/src/runtime/module.rs:1006–1008  ·  view source on GitHub ↗

Returns the range of bytes in memory where this module's compilation image resides. The compilation image for a module contains executable code, data, debug information, etc. This is roughly the same as the `Module::serialize` but not the exact same. The range of memory reported here is exposed to allow low-level manipulation of the memory in platform-specific manners such as using `mlock` to fo

(&self)

Source from the content-addressed store, hash-verified

1004 /// Note that depending on the engine configuration, this image
1005 /// range may not actually be the code that is directly executed.
1006 pub fn image_range(&self) -> Range<*const u8> {
1007 self.engine_code().image().as_ptr_range()
1008 }
1009
1010 /// Force initialization of copy-on-write images to happen here-and-now
1011 /// instead of when they're requested during first instantiation.

Callers 2

Calls 2

imageMethod · 0.45
engine_codeMethod · 0.45

Tested by

no test coverage detected