pub struct Pattern(_);
Expand description

Memory pattern

Implementations

Parses ida style pattern.

Panics

Panics if pattern of invalid style was supplied or failed to parse a byte.

let ida_pat = Pattern::from_ida_style("48 89 85 F0 00 00 00 4C 8B ? ? ? ? ? 48 8D");

Parses ida style pattern. Same as Self::from_ida_style but no panics.

Panics

Panics if pattern of invalid style was supplied or failed to parse a byte.

let ida_pat = Pattern::from_ida_style("48 89 85 F0 00 00 00 4C 8B ? ? ? ? ? 48 8D");

Parses PEiD style pattern.

Panics

Panics if pattern of invalid style was supplied or failed to parse a byte.

let peid_pat = Pattern::from_peid_style("48 89 85 F0 00 00 00 4C 8B ?? ?? ?? ?? ?? 48 8D");

Parses PEiD style pattern.

Panics

Panics if pattern of invalid style was supplied or failed to parse a byte.

let peid_pat = Pattern::from_peid_style("48 89 85 F0 00 00 00 4C 8B ?? ?? ?? ?? ?? 48 8D");

Parses code style pattern.

Panics

Panics if length os mask is not equal to the length of the pattern.

let code_pat = Pattern::from_code_style(
    b"\x48\x89\x85\xF0\x00\x00\x00\x4C\x8B\x00\x00\x00\x00\x00\x48\x8D",
    b"xxxxxxxxx?????xx"
);

Parses code style pattern.

Panics

Panics if length os mask is not equal to the length of the pattern.

let code_pat = Pattern::from_code_style(
    b"\x48\x89\x85\xF0\x00\x00\x00\x4C\x8B\x00\x00\x00\x00\x00\x48\x8D",
    b"xxxxxxxxx?????xx"
);

Finds all pattern occurences in memory range Panics if from > to

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.