MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / is_valid

Method is_valid

rust/src/architecture.rs:812–822  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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
825impl Register for CoreRegister {

Callers 1

newMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected