| 77 | } |
| 78 | |
| 79 | bool Pattern::MatchPattern(uint8_t const * start) |
| 80 | { |
| 81 | auto p = start; |
| 82 | for (auto const & pattern : pattern_) { |
| 83 | if ((*p++ & pattern.mask) != pattern.pattern) { |
| 84 | return false; |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | return true; |
| 89 | } |
| 90 | |
| 91 | void Pattern::ScanPrefix1(uint8_t const * start, uint8_t const * end, std::function<void(uint8_t const *)> callback, bool multiple) |
| 92 | { |
nothing calls this directly
no outgoing calls
no test coverage detected