pub struct HookScan { /* private fields */ }Expand description
A hook builder holding a byte pattern to find the target by, returned by
Hook::scan.
Implementations§
Source§impl HookScan
impl HookScan
Sourcepub fn in_module(self, module: &str) -> Self
pub fn in_module(self, module: &str) -> Self
Searches a loaded module such as "engine.dll" instead of the main
module.
Sourcepub fn offset(self, bytes: isize) -> Self
pub fn offset(self, bytes: isize) -> Self
Moves the target this many bytes on from the start of the match, or back for a negative count.
Sourcepub fn follow_call(self) -> Self
pub fn follow_call(self) -> Self
Follows the call or jmp at the target to the function it goes to;
see Pattern::follow_call.
Auto Trait Implementations§
impl Freeze for HookScan
impl RefUnwindSafe for HookScan
impl Send for HookScan
impl Sync for HookScan
impl Unpin for HookScan
impl UnsafeUnpin for HookScan
impl UnwindSafe for HookScan
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