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

Method init_leaf

external/parallel_hashmap/btree.h:1379–1389  ·  view source on GitHub ↗

Node allocation/deletion routines.

Source from the content-addressed store, hash-verified

1377
1378 // Node allocation/deletion routines.
1379 static btree_node *init_leaf(btree_node *n, btree_node *parent,
1380 int max_cnt) {
1381 n->set_parent(parent);
1382 n->set_position(0);
1383 n->set_start(0);
1384 n->set_count(0);
1385 n->set_max_count((field_type)max_cnt);
1386 phmap::priv::SanitizerPoisonMemoryRegion(
1387 n->slot(0), max_cnt * sizeof(slot_type));
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

Callers

nothing calls this directly

Calls 7

set_parentMethod · 0.80
set_positionMethod · 0.80
set_startMethod · 0.80
set_countMethod · 0.80
set_max_countMethod · 0.80
slotMethod · 0.45

Tested by

no test coverage detected