Skip to main content

apply_asm

Function apply_asm 

Source
pub fn apply_asm<F>(rva: usize, build: F) -> Result<Patch, PatchError>
Expand description

Applies an assembly patch at a relative virtual address (RVA)

§Type Parameters

  • F - The closure that builds the assembly instructions

§Arguments

  • rva - The relative virtual address to patch
  • build - A closure that takes an Aarch64InstructionBuilder and appends instructions

§Returns

  • Result<Patch, PatchError> - The applied patch or an error