| 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 | { |
no outgoing calls
no test coverage detected