| 888 | int32_t null_index_ = kKeyNotFound; |
| 889 | |
| 890 | std::pair<const HashTableEntry*, bool> Lookup(hash_t h, const void* data, |
| 891 | builder_offset_type length) const { |
| 892 | auto cmp_func = [&](const Payload* payload) { |
| 893 | std::string_view lhs = binary_builder_.GetView(payload->memo_index); |
| 894 | std::string_view rhs(static_cast<const char*>(data), length); |
| 895 | return lhs == rhs; |
| 896 | }; |
| 897 | return hash_table_.Lookup(h, cmp_func); |
| 898 | } |
| 899 | |
| 900 | public: |
| 901 | Status MergeTable(const BinaryMemoTable& other_table) { |