Trait frida_gum::instruction_writer::InstructionWriter [−][src]
pub trait InstructionWriter { fn pc(&self) -> u64; fn code_offset(&self) -> u64; fn can_branch_directly_between(&self, source: u64, target: u64) -> bool; fn put_bytes(&self, bytes: &[u8]) -> bool; fn put_label(&self, id: u64) -> bool; fn can_branch_directly_to(&self, target: u64) -> bool { ... } }
A trait all InstructionWriter
s share.
Required methods
fn pc(&self) -> u64
[src]
Retrieve the writer’s current program counter.
fn code_offset(&self) -> u64
[src]
Retrieve the writer’s current code offset.
fn can_branch_directly_between(&self, source: u64, target: u64) -> bool
[src]
Check if we can branch directly between the given source and target addresses.
fn put_bytes(&self, bytes: &[u8]) -> bool
[src]
Add the bytes specified to the instruction stream.
fn put_label(&self, id: u64) -> bool
[src]
Add a label at the curent point in the instruction stream.
Provided methods
fn can_branch_directly_to(&self, target: u64) -> bool
[src]
Check if we can branch directly to the target address from the current program counter.