(
&self,
var: &Variable,
var_type: C,
name: S,
ignore_disjoint_uses: bool,
)
| 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, |
nothing calls this directly
no test coverage detected