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

Function cb_reg_stack_name

rust/src/architecture.rs:2760–2770  ·  view source on GitHub ↗
(ctxt: *mut c_void, stack: u32)

Source from the content-addressed store, hash-verified

2758 }
2759
2760 extern "C" fn cb_reg_stack_name<A>(ctxt: *mut c_void, stack: u32) -> *mut c_char
2761 where
2762 A: 'static + Architecture<Handle = CustomArchitectureHandle<A>> + Send + Sync,
2763 {
2764 let custom_arch = unsafe { &*(ctxt as *mut A) };
2765
2766 match custom_arch.register_stack_from_id(RegisterStackId(stack)) {
2767 Some(stack) => BnString::into_raw(BnString::new(stack.name().as_ref())),
2768 None => BnString::into_raw(BnString::new("invalid_reg_stack")),
2769 }
2770 }
2771
2772 extern "C" fn cb_reg_stacks<A>(ctxt: *mut c_void, count: *mut usize) -> *mut u32
2773 where

Callers

nothing calls this directly

Calls 3

as_refMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected