pub struct StringDetector { /* private fields */ }Expand description
A compiled string detector using the same detection logic as the core strings analysis.
The detector is immutable once constructed, so a single instance may be shared across threads.
Implementations§
Source§impl StringDetector
impl StringDetector
pub fn new(params: &StringDetectionParameters) -> Self
Sourcepub fn detect_strings(
&self,
data: &[u8],
block_len: usize,
base_address: u64,
last_found: Option<&mut StringReference>,
) -> Array<StringReference>
pub fn detect_strings( &self, data: &[u8], block_len: usize, base_address: u64, last_found: Option<&mut StringReference>, ) -> Array<StringReference>
Detects strings in a raw data buffer.
Strings must start within the first block_len bytes of data but may extend to the end
of data, allowing large buffers to be scanned in chunks with a BN_MAX_STRING_LENGTH
overlap tail. last_found (optional, in/out, zero-initialized before the first call)
carries overlap state across consecutive chunk calls so strings spanning a chunk boundary
are not reported twice. Result addresses are relative to base_address.
Trait Implementations§
Source§impl Drop for StringDetector
impl Drop for StringDetector
impl Send for StringDetector
impl Sync for StringDetector
Auto Trait Implementations§
impl Freeze for StringDetector
impl RefUnwindSafe for StringDetector
impl Unpin for StringDetector
impl UnwindSafe for StringDetector
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more