Lines Matching defs:bytes

84             const std::array<uint8_t, 4>& bytes,
88 // location is used, the patterns that use the dictionary bytes
91 if (Head::isPattern(bytes, dict_bytes, match_location)) {
93 new Head(bytes, match_location));
96 return Factory<Tail...>::getPattern(bytes, dict_bytes,
109 const std::array<uint8_t, 4>& bytes,
113 return std::unique_ptr<Pattern>(new Head(bytes, match_location));
251 * Number of unmatched bytes;
279 * @param num_unmatched_bytes Number of unmatched bytes.
359 * @param dict_bytes The bytes in the corresponding matching entry.
370 PatternZZZZ(const std::array<uint8_t, 4> bytes, const int match_location)
373 static bool isPattern(const std::array<uint8_t, 4>& bytes,
377 return (bytes[3] == 0) && (bytes[2] == 0) && (bytes[1] == 0) &&
378 (bytes[0] == 0);
395 const std::array<uint8_t, 4> bytes;
398 PatternXXXX(const std::array<uint8_t, 4> bytes, const int match_location)
399 : Pattern(XXXX, 0x1, 2, 4, 0, true), bytes(bytes) {}
401 static bool isPattern(const std::array<uint8_t, 4>& bytes,
413 data = bytes;
421 PatternMMMM(const std::array<uint8_t, 4> bytes, const int match_location)
424 static bool isPattern(const std::array<uint8_t, 4>& bytes,
428 return (bytes == dict_bytes) && (match_location >= 0);
443 * A copy of the unmatched bytes.
449 PatternMMXX(const std::array<uint8_t, 4> bytes, const int match_location)
451 byte0(bytes[0]), byte1(bytes[1]) {}
453 static bool isPattern(const std::array<uint8_t, 4>& bytes,
457 // Notice we don't compare bytes[0], as otherwise we'd be unnecessarily
459 return (bytes[3] == dict_bytes[3]) && (bytes[2] == dict_bytes[2]) &&
460 (bytes[1] != dict_bytes[1]) && (match_location >= 0);
481 PatternZZZX(const std::array<uint8_t, 4> bytes, const int match_location)
482 : Pattern(ZZZX, 0xD, 4, 1, 0, false), byte(bytes[0]) {}
484 static bool isPattern(const std::array<uint8_t, 4>& bytes,
488 return (bytes[3] == 0) && (bytes[2] == 0) && (bytes[1] == 0) &&
489 (bytes[0] != 0);
509 PatternMMMX(const std::array<uint8_t, 4> bytes, const int match_location)
511 byte(bytes[0]) {}
513 static bool isPattern(const std::array<uint8_t, 4>& bytes,
517 return (bytes[3] == dict_bytes[3]) && (bytes[2] == dict_bytes[2]) &&
518 (bytes[1] == dict_bytes[1]) && (bytes[0] != dict_bytes[0]) &&