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

Method global_pointer_reg

rust/src/calling_convention.rs:664–673  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

662 }
663
664 fn global_pointer_reg(&self) -> Option<RegisterId> {
665 match unsafe { BNGetGlobalPointerRegister(self.handle) } {
666 id if id < 0x8000_0000 => self
667 .arch_handle
668 .borrow()
669 .register_from_id(RegisterId(id))
670 .map(|r| r.id()),
671 _ => None,
672 }
673 }
674
675 fn implicitly_defined_registers(&self) -> Vec<RegisterId> {
676 unsafe {

Callers 1

fmtMethod · 0.45

Calls 4

mapMethod · 0.80
register_from_idMethod · 0.45
borrowMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected