MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / leafNeedsShift

Method leafNeedsShift

source/test/btree_test.cpp:323–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321 }
322
323 bool leafNeedsShift(Leaf const& leaf) {
324 return leaf.count() < (maxLeafSize + 1) / 2;
325 }
326
327 bool shouldAppendNewLeaf(Leaf const& leaf) {
328 return maxLeafSize == 2 && leaf.count() == 2;

Callers

nothing calls this directly

Calls 1

countMethod · 0.45

Tested by

no test coverage detected