| 2294 | bool dedup_vtables_; |
| 2295 | |
| 2296 | struct StringOffsetCompare { |
| 2297 | StringOffsetCompare(const vector_downward &buf) : buf_(&buf) {} |
| 2298 | bool operator()(const Offset<String> &a, const Offset<String> &b) const { |
| 2299 | auto stra = reinterpret_cast<const String *>(buf_->data_at(a.o)); |
| 2300 | auto strb = reinterpret_cast<const String *>(buf_->data_at(b.o)); |
| 2301 | return StringLessThan(stra->data(), stra->size(), strb->data(), |
| 2302 | strb->size()); |
| 2303 | } |
| 2304 | const vector_downward *buf_; |
| 2305 | }; |
| 2306 | |
| 2307 | // For use with CreateSharedString. Instantiated on first use only. |
| 2308 | typedef std::set<Offset<String>, StringOffsetCompare> StringOffsetMap; |
no outgoing calls
no test coverage detected