| 1621 | explicit StringOffsetCompare(const std::vector<uint8_t> &buf) |
| 1622 | : buf_(&buf) {} |
| 1623 | bool operator()(const StringOffset &a, const StringOffset &b) const { |
| 1624 | auto stra = reinterpret_cast<const char *>( |
| 1625 | flatbuffers::vector_data(*buf_) + a.first); |
| 1626 | auto strb = reinterpret_cast<const char *>( |
| 1627 | flatbuffers::vector_data(*buf_) + b.first); |
| 1628 | return strncmp(stra, strb, (std::min)(a.second, b.second) + 1) < 0; |
| 1629 | } |
| 1630 | const std::vector<uint8_t> *buf_; |
| 1631 | }; |
| 1632 |
nothing calls this directly
no test coverage detected