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

Function cb_flag_name

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

Source from the content-addressed store, hash-verified

2247 }
2248
2249 extern "C" fn cb_flag_name<A>(ctxt: *mut c_void, flag: u32) -> *mut c_char
2250 where
2251 A: 'static + Architecture<Handle = CustomArchitectureHandle<A>> + Send + Sync,
2252 {
2253 let custom_arch = unsafe { &*(ctxt as *mut A) };
2254
2255 match custom_arch.flag_from_id(flag.into()) {
2256 Some(flag) => BnString::into_raw(BnString::new(flag.name().as_ref())),
2257 None => BnString::into_raw(BnString::new("invalid_flag")),
2258 }
2259 }
2260
2261 extern "C" fn cb_flag_write_name<A>(ctxt: *mut c_void, flag_write: u32) -> *mut c_char
2262 where

Callers

nothing calls this directly

Calls 3

flag_from_idMethod · 0.45
as_refMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected