MCPcopy Create free account
hub / github.com/Norbyte/ositools / MatchPattern

Method MatchPattern

OsiInterface/DataLibraries.cpp:79–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected