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

Method patch

cranelift/codegen/src/machinst/buffer.rs:495–497  ·  view source on GitHub ↗

Consume the patch region to yield a mutable slice of the [`MachBuffer`] data buffer.

(self, buffer: &mut MachBuffer<I>)

Source from the content-addressed store, hash-verified

493impl PatchRegion {
494 /// Consume the patch region to yield a mutable slice of the [`MachBuffer`] data buffer.
495 pub fn patch<I: VCodeInst>(self, buffer: &mut MachBuffer<I>) -> &mut [u8] {
496 &mut buffer.data[self.range]
497 }
498}
499
500impl<I: VCodeInst> MachBuffer<I> {

Callers 4

handle_fixupMethod · 0.45
emit_veneerMethod · 0.45
finalizeMethod · 0.45
finalizeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected