Struct owl::Gadget
[−]
[src]
pub struct Gadget { /* fields omitted */ }
A ROP gadget
Methods
impl Gadget
[src]
fn new(offset: u64, instructions: Vec<String>, bytes: Vec<u8>) -> Gadget
[src]
Create a new ROP gadget. This is the result of GadgetFinder::find
.
offset
- Offset into buffer which was searched for gadgets where this gadget was found.length
- The length of this gadget in bytes.instructions
- The human-readable text representation of the instructions in this ROP gadget.bytes
- The bytes of the instructions in this gadget.
fn bytes(&self) -> &[u8]
[src]
Get the bytes for this gadget.
fn instructions(&self) -> &[String]
[src]
Get the human-readable strings of the instructions for this gadget.
fn len(&self) -> usize
[src]
Get the length of this gadget in bytes.
fn offset(&self) -> u64
[src]
Get the offset into the searched buffer where this gadget was found.
fn set_bytes(&mut self, bytes: Vec<u8>)
[src]
Set the bytes for this gadget.
fn set_instructions(&mut self, instructions: Vec<String>)
[src]
Set the instruction strings for this gadget.
fn set_offset(&mut self, offset: u64)
[src]
Set offset for this gadget
Trait Implementations
impl Clone for Gadget
[src]
fn clone(&self) -> Gadget
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more