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

Method leafNeedsShift

source/core/StarBTreeDatabase.cpp:679–681  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

677}
678
679bool BTreeDatabase::BTreeImpl::leafNeedsShift(Leaf const& l) {
680 return parent->leafSize(l) < parent->m_blockSize / 2;
681}
682
683bool BTreeDatabase::BTreeImpl::leafShift(Leaf& left, Leaf& right) {
684 if (left->count() == 0) {

Callers

nothing calls this directly

Calls 1

leafSizeMethod · 0.80

Tested by

no test coverage detected