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

Method flag_groups

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

Source from the content-addressed store, hash-verified

1717 }
1718
1719 fn flag_groups(&self) -> Vec<CoreFlagGroup> {
1720 unsafe {
1721 let mut count: usize = 0;
1722 let flag_groups_raw = BNGetAllArchitectureSemanticFlagGroups(self.handle, &mut count);
1723
1724 let ret = std::slice::from_raw_parts(flag_groups_raw, count)
1725 .iter()
1726 .map(|&id| FlagGroupId::from(id))
1727 .filter_map(|flag_group| CoreFlagGroup::new(*self, flag_group))
1728 .collect();
1729
1730 BNFreeRegisterList(flag_groups_raw);
1731
1732 ret
1733 }
1734 }
1735
1736 fn stack_pointer_reg(&self) -> Option<CoreRegister> {
1737 match unsafe { BNGetArchitectureStackPointerRegister(self.handle) } {

Callers 1

cb_semantic_flag_groupsFunction · 0.45

Calls 2

mapMethod · 0.80
iterMethod · 0.45

Tested by

no test coverage detected