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

Function cb_semantic_flag_class_name

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

Source from the content-addressed store, hash-verified

2271 }
2272
2273 extern "C" fn cb_semantic_flag_class_name<A>(ctxt: *mut c_void, class: u32) -> *mut c_char
2274 where
2275 A: 'static + Architecture<Handle = CustomArchitectureHandle<A>> + Send + Sync,
2276 {
2277 let custom_arch = unsafe { &*(ctxt as *mut A) };
2278
2279 match custom_arch.flag_class_from_id(class.into()) {
2280 Some(class) => BnString::into_raw(BnString::new(class.name().as_ref())),
2281 None => BnString::into_raw(BnString::new("invalid_flag_class")),
2282 }
2283 }
2284
2285 extern "C" fn cb_semantic_flag_group_name<A>(ctxt: *mut c_void, group: u32) -> *mut c_char
2286 where

Callers

nothing calls this directly

Calls 3

flag_class_from_idMethod · 0.45
as_refMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected