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

Method ScanPrefix1

OsiInterface/DataLibraries.cpp:91–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89 }
90
91 void Pattern::ScanPrefix1(uint8_t const * start, uint8_t const * end, std::function<void(uint8_t const *)> callback, bool multiple)
92 {
93 uint8_t initial = pattern_[0].pattern;
94
95 for (auto p = start; p < end; p++) {
96 if (*p == initial) {
97 if (MatchPattern(p)) {
98 callback(p);
99 if (!multiple) return;
100 }
101 }
102 }
103 }
104
105 void Pattern::ScanPrefix2(uint8_t const * start, uint8_t const * end, std::function<void(uint8_t const *)> callback, bool multiple)
106 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected