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

Method pointerCount

source/core/StarBTreeDatabase.cpp:331–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329size_t const BTreeDatabase::BTreeRootInfoSize;
330
331size_t BTreeDatabase::IndexNode::pointerCount() const {
332 // If no begin pointer is set then the index is simply uninitialized.
333 if (!beginPointer)
334 return 0;
335 else
336 return pointers.size() + 1;
337}
338
339auto BTreeDatabase::IndexNode::pointer(size_t i) const -> BlockIndex {
340 if (i == 0)

Callers 7

shiftLeftMethod · 0.45
shiftRightMethod · 0.45
indexNeedsShiftMethod · 0.45
indexShiftMethod · 0.45
indexSplitMethod · 0.45
indexPointerCountMethod · 0.45
flattenVisitorMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected