| 75 | } |
| 76 | |
| 77 | static bool is_bytes_suffix(const Bytes &suffix, const Bytes &bytes) |
| 78 | { |
| 79 | if (suffix.size() > bytes.size()) { |
| 80 | return false; |
| 81 | } |
| 82 | for (size_t i=0; i<suffix.size(); i++) { |
| 83 | if (suffix[i] != bytes[bytes.size()-suffix.size()+i]) { |
| 84 | return false; |
| 85 | } |
| 86 | } |
| 87 | return true; |
| 88 | } |
| 89 | |
| 90 | class Sequence { |
| 91 | Bytes bytes; |
no test coverage detected