From 533b108f96f9073fd4e075ccd330c07713a49d99 Mon Sep 17 00:00:00 2001 From: Ryan Snyder Date: Thu, 31 Aug 2023 08:25:12 -0400 Subject: add exprIndex field to BNInstructionTextToken --- rust/src/disassembly.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'rust/src') diff --git a/rust/src/disassembly.rs b/rust/src/disassembly.rs index 161eebc3..1c8bcd0d 100644 --- a/rust/src/disassembly.rs +++ b/rust/src/disassembly.rs @@ -157,6 +157,7 @@ impl InstructionTextToken { address, typeNames: ptr::null_mut(), namesCount: 0, + exprIndex: BN_INVALID_EXPR }) } @@ -206,6 +207,10 @@ impl InstructionTextToken { pub fn address(&self) -> u64 { self.0.address } + + pub fn expr_index(&self) -> usize { + self.0.exprIndex + } } impl Default for InstructionTextToken { @@ -222,6 +227,7 @@ impl Default for InstructionTextToken { address: 0, typeNames: ptr::null_mut(), namesCount: 0, + exprIndex: BN_INVALID_EXPR }) } } @@ -240,6 +246,7 @@ impl Clone for InstructionTextToken { confidence: 0xff, typeNames: ptr::null_mut(), namesCount: 0, + exprIndex: self.0.exprIndex }) } } -- cgit v1.3.1