Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
679
bool BTreeDatabase::BTreeImpl::leafNeedsShift(Leaf const& l) {
680
return parent->leafSize(l) < parent->m_blockSize / 2;
681
}
682
683
bool BTreeDatabase::BTreeImpl::leafShift(Leaf& left, Leaf& right) {
684
if (left->count() == 0) {
Callers
nothing calls this directly
Calls
1
leafSize
Method · 0.80
Tested by
no test coverage detected