(
&self,
expr_index: MediumLevelInstructionIndex,
)
| 70 | } |
| 71 | |
| 72 | pub fn instruction_from_expr_index( |
| 73 | &self, |
| 74 | expr_index: MediumLevelInstructionIndex, |
| 75 | ) -> Option<MediumLevelILInstruction> { |
| 76 | if expr_index.0 >= self.expression_count() { |
| 77 | None |
| 78 | } else { |
| 79 | Some(MediumLevelILInstruction::new_expr( |
| 80 | self.to_owned(), |
| 81 | expr_index, |
| 82 | )) |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | pub fn instruction_count(&self) -> usize { |
| 87 | unsafe { BNGetMediumLevelILInstructionCount(self.handle) } |
no test coverage detected