MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / operator()

Method operator()

Libs/flatbuffers/flexbuffers.h:1623–1629  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

vector_dataFunction · 0.85

Tested by

no test coverage detected