| 117 | } |
| 118 | |
| 119 | Status TrieBuilder::ExtendLookupTable(index_type* out_index) { |
| 120 | auto cur_size = trie_.lookup_table_.size(); |
| 121 | auto cur_index = cur_size / 256; |
| 122 | if (cur_index > static_cast<size_t>(kMaxIndex)) { |
| 123 | return Status::CapacityError("TrieBuilder cannot extend lookup table further"); |
| 124 | } |
| 125 | trie_.lookup_table_.resize(cur_size + 256, -1); |
| 126 | *out_index = static_cast<index_type>(cur_index); |
| 127 | return Status::OK(); |
| 128 | } |
| 129 | |
| 130 | Status TrieBuilder::SplitNode(fast_index_type node_index, fast_index_type split_at) { |
| 131 | Trie::Node* node = &trie_.nodes_[node_index]; |
nothing calls this directly
no test coverage detected