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

Method flags

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

Source from the content-addressed store, hash-verified

1666 }
1667
1668 fn flags(&self) -> Vec<CoreFlag> {
1669 unsafe {
1670 let mut count: usize = 0;
1671 let flags_raw = BNGetAllArchitectureFlags(self.handle, &mut count);
1672
1673 let ret = std::slice::from_raw_parts(flags_raw, count)
1674 .iter()
1675 .map(|&id| FlagId::from(id))
1676 .filter_map(|flag| CoreFlag::new(*self, flag))
1677 .collect();
1678
1679 BNFreeRegisterList(flags_raw);
1680
1681 ret
1682 }
1683 }
1684
1685 fn flag_write_types(&self) -> Vec<CoreFlagWrite> {
1686 unsafe {

Callers 1

cb_flagsFunction · 0.45

Calls 2

mapMethod · 0.80
iterMethod · 0.45

Tested by

no test coverage detected