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

Method updatePointer

source/core/StarBTreeDatabase.cpp:346–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344}
345
346void BTreeDatabase::IndexNode::updatePointer(size_t i, BlockIndex p) {
347 if (i == 0)
348 *beginPointer = p;
349 else
350 pointers.at(i - 1).pointer = p;
351}
352
353ByteArray const& BTreeDatabase::IndexNode::keyBefore(size_t i) const {
354 return pointers.at(i - 1).key;

Callers 2

indexUpdatePointerMethod · 0.45
flattenVisitorMethod · 0.45

Calls 1

atMethod · 0.45

Tested by

no test coverage detected