hooking 0.8.0

cross platform detour / hooking library in rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! x86 assembly and disassembly used to build trampolines and relocate the
//! instructions overwritten by a hook, backed by `iced-x86`. This is internal
//! plumbing; hooking goes through [`Hook`](crate::Hook) /
//! [`HookWriter`](crate::HookWriter), not these primitives.
//!
//! ```
//! use hooking::asm::MAX_PATCH_LEN;
//! // The most bytes a hook's jump overwrites at the start of a target.
//! assert!(MAX_PATCH_LEN >= 5);
//! ```

/// Errors from assembling, disassembling, or relocating instructions.
pub mod error;
mod x86;

pub use error::{AssemblyError, Result};
pub use x86::*;