machina 0.6.1

Manage and execute assembly at runtime.
Documentation
1
2
3
pub fn find_subsequence(haystack: &[u8], needle: &[u8]) -> Option<usize> {
    haystack.windows(needle.len()).position(|window| window == needle)
}