MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / init_internal

Method init_internal

external/parallel_hashmap/btree.h:1390–1398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 2

set_max_countMethod · 0.80

Tested by

no test coverage detected