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

Function cb_flag_role

rust/src/architecture.rs:2434–2448  ·  view source on GitHub ↗
(ctxt: *mut c_void, flag: u32, class: u32)

Source from the content-addressed store, hash-verified

2432 }
2433
2434 extern "C" fn cb_flag_role<A>(ctxt: *mut c_void, flag: u32, class: u32) -> BNFlagRole
2435 where
2436 A: 'static + Architecture<Handle = CustomArchitectureHandle<A>> + Send + Sync,
2437 {
2438 let custom_arch = unsafe { &*(ctxt as *mut A) };
2439
2440 if let (Some(flag), class) = (
2441 custom_arch.flag_from_id(FlagId(flag)),
2442 custom_arch.flag_class_from_id(FlagClassId(class)),
2443 ) {
2444 flag.role(class)
2445 } else {
2446 FlagRole::SpecialFlagRole
2447 }
2448 }
2449
2450 extern "C" fn cb_flags_required_for_flag_cond<A>(
2451 ctxt: *mut c_void,

Callers

nothing calls this directly

Calls 3

flag_from_idMethod · 0.45
flag_class_from_idMethod · 0.45
roleMethod · 0.45

Tested by

no test coverage detected