diff options
| author | Mason Reed <mason@vector35.com> | 2025-05-05 13:17:30 -0400 |
|---|---|---|
| committer | Mason Reed <35282038+emesare@users.noreply.github.com> | 2025-05-12 17:45:24 -0400 |
| commit | 9dadf92c16da5cd21def79ae39ca98803c9208ec (patch) | |
| tree | 3874a659bcb3818f43c1a46ab3ef081b99b47154 /rust/src/medium_level_il | |
| parent | 9f5491a56f6af1fa9b030f23d40150673a52aaa1 (diff) | |
[Rust] Rename `AsCStr` to `IntoCStr`
Diffstat (limited to 'rust/src/medium_level_il')
| -rw-r--r-- | rust/src/medium_level_il/function.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rust/src/medium_level_il/function.rs b/rust/src/medium_level_il/function.rs index 75ccad82..0b88c166 100644 --- a/rust/src/medium_level_il/function.rs +++ b/rust/src/medium_level_il/function.rs @@ -10,7 +10,7 @@ use crate::disassembly::DisassemblySettings; use crate::flowgraph::FlowGraph; use crate::function::{Function, Location}; use crate::rc::{Array, CoreArrayProvider, CoreArrayProviderInner, Ref, RefCountable}; -use crate::string::AsCStr; +use crate::string::IntoCStr; use crate::types::Type; use crate::variable::{PossibleValueSet, RegisterValue, SSAVariable, UserVariableValue, Variable}; @@ -121,7 +121,7 @@ impl MediumLevelILFunction { unsafe { Array::new(raw_instr_idxs, count, self.to_owned()) } } - pub fn create_user_stack_var<'a, S: AsCStr, C: Into<Conf<&'a Type>>>( + pub fn create_user_stack_var<'a, S: IntoCStr, C: Into<Conf<&'a Type>>>( self, offset: i64, var_type: C, @@ -143,7 +143,7 @@ impl MediumLevelILFunction { unsafe { BNDeleteUserStackVariable(self.function().handle, offset) } } - pub fn create_user_var<'a, S: AsCStr, C: Into<Conf<&'a Type>>>( + pub fn create_user_var<'a, S: IntoCStr, C: Into<Conf<&'a Type>>>( &self, var: &Variable, var_type: C, @@ -273,7 +273,7 @@ impl MediumLevelILFunction { Ok(()) } - pub fn create_auto_stack_var<'a, T: Into<Conf<&'a Type>>, S: AsCStr>( + pub fn create_auto_stack_var<'a, T: Into<Conf<&'a Type>>, S: IntoCStr>( &self, offset: i64, var_type: T, @@ -295,7 +295,7 @@ impl MediumLevelILFunction { unsafe { BNDeleteAutoStackVariable(self.function().handle, offset) } } - pub fn create_auto_var<'a, S: AsCStr, C: Into<Conf<&'a Type>>>( + pub fn create_auto_var<'a, S: IntoCStr, C: Into<Conf<&'a Type>>>( &self, var: &Variable, var_type: C, |
