| 1388 | return n; |
| 1389 | } |
| 1390 | static btree_node *init_internal(btree_node *n, btree_node *parent) { |
| 1391 | init_leaf(n, parent, kNodeValues); |
| 1392 | // Set `max_count` to a sentinel value to indicate that this node is |
| 1393 | // internal. |
| 1394 | n->set_max_count(kInternalNodeMaxCount); |
| 1395 | phmap::priv::SanitizerPoisonMemoryRegion( |
| 1396 | &n->mutable_child(0), (kNodeValues + 1) * sizeof(btree_node *)); |
| 1397 | return n; |
| 1398 | } |
| 1399 | void destroy(allocator_type *alloc) { |
| 1400 | for (int i = 0; i < count(); ++i) { |
| 1401 | value_destroy(i, alloc); |
nothing calls this directly
no test coverage detected