| 185 | } |
| 186 | |
| 187 | Value HashTree::get(slice key) const { |
| 188 | auto root = rootNode(); |
| 189 | auto leaf = root->findNearest(ComputeHash(key)); |
| 190 | if (leaf && leaf->keyString() == key) |
| 191 | return leaf->value(); |
| 192 | return nullptr; |
| 193 | } |
| 194 | |
| 195 | unsigned HashTree::count() const { |
| 196 | return rootNode()->leafCount(); |
nothing calls this directly
no test coverage detected