pub struct Pattern { /* private fields */ }Expand description
parsed byte pattern with wildcard mask
Implementations§
Source§impl Pattern
impl Pattern
Sourcepub fn from_bytes_mask(bytes: &[u8], mask: &[bool]) -> Result<Self>
pub fn from_bytes_mask(bytes: &[u8], mask: &[bool]) -> Result<Self>
create pattern from bytes and mask arrays
Sourcepub fn from_code(bytes: &[u8], mask: &str) -> Result<Self>
pub fn from_code(bytes: &[u8], mask: &str) -> Result<Self>
create pattern from bytes and string mask
mask format: x = exact match, ? = wildcard
example: "xx????xx" for 8 bytes with 4 wildcards in middle
Sourcepub fn from_ida(pattern: &str) -> Result<Self>
pub fn from_ida(pattern: &str) -> Result<Self>
parse IDA-style pattern string
format: space-separated hex bytes, ? or ?? for wildcards
examples:
"48 8B 05 ?? ?? ?? ?? 48 89""48 8B 05 ? ? ? ? 48 89""E8 ?? ?? ?? ?? 90 90"
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pattern
impl RefUnwindSafe for Pattern
impl Send for Pattern
impl Sync for Pattern
impl Unpin for Pattern
impl UnwindSafe for Pattern
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