diff options
| author | Ryan Snyder <ryan@vector35.com> | 2023-08-31 08:25:12 -0400 |
|---|---|---|
| committer | Ryan Snyder <ryan@vector35.com> | 2024-02-07 19:36:57 -0500 |
| commit | 533b108f96f9073fd4e075ccd330c07713a49d99 (patch) | |
| tree | 1a45a269fe0c590483975349c32c8d9fe08bc2c5 /rust | |
| parent | a5129e2073b5bf6254d758f56d7ee3677a6fb599 (diff) | |
add exprIndex field to BNInstructionTextToken
Diffstat (limited to 'rust')
| -rw-r--r-- | rust/src/disassembly.rs | 7 |
1 files changed, 7 insertions, 0 deletions
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 }) } } |
