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

Method create_auto_var

rust/src/medium_level_il/function.rs:300–320  ·  view source on GitHub ↗
(
        &self,
        var: &Variable,
        var_type: C,
        name: S,
        ignore_disjoint_uses: bool,
    )

Source from the content-addressed store, hash-verified

298 }
299
300 pub fn create_auto_var<'a, S: BnStrCompatible, C: Into<Conf<&'a Type>>>(
301 &self,
302 var: &Variable,
303 var_type: C,
304 name: S,
305 ignore_disjoint_uses: bool,
306 ) {
307 let raw_var = BNVariable::from(var);
308 let mut owned_raw_var_ty = Conf::<&Type>::into_raw(var_type.into());
309 let name = name.into_bytes_with_nul();
310 let name_c_str = name.as_ref();
311 unsafe {
312 BNCreateAutoVariable(
313 self.function().handle,
314 &raw_var,
315 &mut owned_raw_var_ty,
316 name_c_str.as_ptr() as *const c_char,
317 ignore_disjoint_uses,
318 )
319 }
320 }
321
322 /// Returns a list of ILReferenceSource objects (IL xrefs or cross-references)
323 /// that reference the given variable. The variable is a local variable that can be either on the stack,

Callers

nothing calls this directly

Calls 3

into_bytes_with_nulMethod · 0.80
as_refMethod · 0.45
functionMethod · 0.45

Tested by

no test coverage detected