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

Method code_buffer

cranelift/codegen/src/machinst/mod.rs:631–633  ·  view source on GitHub ↗

Returns a reference to the machine code generated for this function compilation.

(&self)

Source from the content-addressed store, hash-verified

629
630 /// Returns a reference to the machine code generated for this function compilation.
631 pub fn code_buffer(&self) -> &[u8] {
632 self.buffer.data()
633 }
634
635 /// Get the disassembly of the buffer, using the given capstone context.
636 #[cfg(feature = "disas")]

Callers 3

handle_moduleFunction · 0.80
compile_and_emitMethod · 0.80

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected