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

Method FromRaw

OsiInterface/DataLibraries.cpp:69–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 }
68
69 void Pattern::FromRaw(const char * s)
70 {
71 auto len = strlen(s) + 1;
72 pattern_.resize(len);
73 for (auto i = 0; i < len; i++) {
74 pattern_[i].pattern = (uint8_t)s[i];
75 pattern_[i].mask = 0xFF;
76 }
77 }
78
79 bool Pattern::MatchPattern(uint8_t const * start)
80 {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected