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

Function simplify_str_to_str

rust/src/template_simplifier.rs:7–10  ·  view source on GitHub ↗
(input: S)

Source from the content-addressed store, hash-verified

5use binaryninjacore_sys::{BNRustSimplifyStrToFQN, BNRustSimplifyStrToStr};
6
7pub fn simplify_str_to_str<S: BnStrCompatible>(input: S) -> BnString {
8 let name = input.into_bytes_with_nul();
9 unsafe { BnString::from_raw(BNRustSimplifyStrToStr(name.as_ref().as_ptr() as *mut _)) }
10}
11
12pub fn simplify_str_to_fqn<S: BnStrCompatible>(input: S, simplify: bool) -> QualifiedName {
13 let name = input.into_bytes_with_nul();

Callers 2

recover_names_internalFunction · 0.85
parse_function_entryFunction · 0.85

Calls 2

into_bytes_with_nulMethod · 0.80
as_refMethod · 0.45

Tested by

no test coverage detected