Skip to content

no_std compatible pattern scan library using simd

Notifications You must be signed in to change notification settings

greaka/patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pattern matching library

Allows you to search for a pattern within data via an iterator interface.

This library uses the core::simd abstraction and does not allocate.

Usage

use patterns::Pattern;

let data = [0_u8; 1_000_00];
// Allows . and ? as wildcard.
// Any number of wildcard characters between spaces is considered a wildcard byte.
let pattern: Pattern = "01 02 00 ? 59 ff".parse().unwrap();
let mut iterator = pattern.matches(&data);

for _found in iterator {
    // use _found
}

About

no_std compatible pattern scan library using simd

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages