| 62 | } |
| 63 | |
| 64 | static bool is_bytes_prefix(const Bytes &prefix, const Bytes &bytes) |
| 65 | { |
| 66 | if (prefix.size() > bytes.size()) { |
| 67 | return false; |
| 68 | } |
| 69 | for (size_t i=0; i<prefix.size(); i++) { |
| 70 | if (prefix[i] != bytes[i]) { |
| 71 | return false; |
| 72 | } |
| 73 | } |
| 74 | return true; |
| 75 | } |
| 76 | |
| 77 | static bool is_bytes_suffix(const Bytes &suffix, const Bytes &bytes) |
| 78 | { |
no test coverage detected