pub struct Config {
pub min_length: u8,
pub min_length_nul: u8,
pub strict_nul: bool,
pub heuristic: Heuristic,
}Expand description
Configure the string finding heuristics.
Fields§
§min_length: u8Minimum string length to accept as a valid string.
min_length_nul: u8Minimum string length when there is a nul terminator. Can have a lower threshold as having a nul terminator increases confidence that this is a c string literal.
strict_nul: boolWhen true, requires any found string to be terminated by a nul terminator. A nul terminator increases confidence that this is indeed a c string literal.
heuristic: HeuristicHeuristic to use to validate sequences.
Implementations§
Source§impl Config
impl Config
Sourcepub fn enumerate(self, base: u32, bytes: &[u8]) -> Enumerator<'_> ⓘ
pub fn enumerate(self, base: u32, bytes: &[u8]) -> Enumerator<'_> ⓘ
Constructs the enumerator with this configuration.
Given the base argument the relative virtual address of the bytes slice.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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