| 1595 | BitWidth force_min_bit_width_; |
| 1596 | |
| 1597 | struct KeyOffsetCompare { |
| 1598 | explicit KeyOffsetCompare(const std::vector<uint8_t> &buf) : buf_(&buf) {} |
| 1599 | bool operator()(size_t a, size_t b) const { |
| 1600 | auto stra = |
| 1601 | reinterpret_cast<const char *>(flatbuffers::vector_data(*buf_) + a); |
| 1602 | auto strb = |
| 1603 | reinterpret_cast<const char *>(flatbuffers::vector_data(*buf_) + b); |
| 1604 | return strcmp(stra, strb) < 0; |
| 1605 | } |
| 1606 | const std::vector<uint8_t> *buf_; |
| 1607 | }; |
| 1608 | |
| 1609 | typedef std::pair<size_t, size_t> StringOffset; |
| 1610 | struct StringOffsetCompare { |