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

Method image

crates/wasmtime/src/runtime/code.rs:236–238  ·  view source on GitHub ↗

Returns the raw image as bytes (in our internal image format).

(&self)

Source from the content-addressed store, hash-verified

234
235 /// Returns the raw image as bytes (in our internal image format).
236 pub fn image(&self) -> &[u8] {
237 &self.original_code.mmap()[..]
238 }
239
240 pub fn text(&self) -> &[u8] {
241 &self.original_code.text()

Callers 5

serializeMethod · 0.45
image_rangeMethod · 0.45
register_profilingMethod · 0.45
serializeMethod · 0.45
image_rangeMethod · 0.45

Calls 1

mmapMethod · 0.45

Tested by

no test coverage detected