| 897 | int32_t null_index_ = kKeyNotFound; |
| 898 | |
| 899 | std::pair<const HashTableEntry*, bool> Lookup(hash_t h, const void* data, |
| 900 | builder_offset_type length) const { |
| 901 | auto cmp_func = [&](const Payload* payload) { |
| 902 | std::string_view lhs = binary_builder_.GetView(payload->memo_index); |
| 903 | std::string_view rhs(static_cast<const char*>(data), length); |
| 904 | return lhs == rhs; |
| 905 | }; |
| 906 | return hash_table_.Lookup(h, cmp_func); |
| 907 | } |
| 908 | |
| 909 | public: |
| 910 | Status MergeTable(const BinaryMemoTable& other_table) { |