summaryrefslogtreecommitdiff
path: root/rust/src/hlil/instruction.rs
diff options
context:
space:
mode:
authorRusty Wagner <rusty.wagner@gmail.com>2024-04-26 18:26:12 -0400
committerRusty Wagner <rusty.wagner@gmail.com>2024-04-30 13:12:21 -0400
commitbec653143bd78f1662ed1a556c4b00471f395fcc (patch)
tree30e5db55a4660970f6730315851ee09d848555e5 /rust/src/hlil/instruction.rs
parentf193132145f62cac0ffeebc3ff918ebf9dd37103 (diff)
Add HLIL APIs to fetch the root or by instruction index, and expose the operation size in the Rust API
Diffstat (limited to 'rust/src/hlil/instruction.rs')
-rw-r--r--rust/src/hlil/instruction.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/rust/src/hlil/instruction.rs b/rust/src/hlil/instruction.rs
index 9bffadaf..7e77e379 100644
--- a/rust/src/hlil/instruction.rs
+++ b/rust/src/hlil/instruction.rs
@@ -16,6 +16,7 @@ pub struct HighLevelILInstruction {
pub function: Ref<HighLevelILFunction>,
pub address: u64,
pub index: usize,
+ pub size: usize,
pub kind: HighLevelILInstructionKind,
}
@@ -629,6 +630,7 @@ impl HighLevelILInstruction {
function,
address: op.address,
index,
+ size: op.size,
kind,
}
}
@@ -878,6 +880,7 @@ impl HighLevelILInstruction {
function: self.function.clone(),
address: self.address,
index: self.index,
+ size: self.size,
kind,
}
}