| 69 | // Test comparators |
| 70 | |
| 71 | static ByteArray ByteArrayFromString(const std::string& s) { |
| 72 | auto ptr = reinterpret_cast<const uint8_t*>(s.data()); |
| 73 | return ByteArray(static_cast<uint32_t>(s.size()), ptr); |
| 74 | } |
| 75 | |
| 76 | static FLBA FLBAFromString(const std::string& s) { |
| 77 | auto ptr = reinterpret_cast<const uint8_t*>(s.data()); |