| Crates.io | sigscan |
| lib.rs | sigscan |
| version | 0.1.1 |
| created_at | 2021-08-26 19:13:21.29385+00 |
| updated_at | 2021-08-26 19:23:36.263316+00 |
| description | a `#[no_std]` sigscanning crate |
| homepage | |
| repository | https://github.com/wozniak/sigscan-rs |
| max_upload_size | |
| id | 442686 |
| size | 2,555 |
A simple sigscanning library
use sigscan::pattern;
use sigscann::scan;
fn main() {
let haystack = &[0xfa_u8, 0x10, 0x38, 0x47, 0xff, 0x73];
let index = scan(pattern![0x10 ? ? 0xff], haystack).unwrap();
assert_eq(index, 1);
}