(&self)
| 810 | } |
| 811 | |
| 812 | fn is_valid(&self) -> bool { |
| 813 | // We check the name to see if the register is actually valid. |
| 814 | let name = unsafe { BNGetArchitectureRegisterName(self.arch.handle, self.id.into()) }; |
| 815 | match name.is_null() { |
| 816 | true => false, |
| 817 | false => { |
| 818 | unsafe { BNFreeString(name) }; |
| 819 | true |
| 820 | } |
| 821 | } |
| 822 | } |
| 823 | } |
| 824 | |
| 825 | impl Register for CoreRegister { |