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

Method readBlock

source/core/StarBTreeDatabase.cpp:878–881  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

876void BTreeDatabase::BTreeImpl::setNextLeaf(Leaf&, Maybe<Pointer>) {}
877
878void BTreeDatabase::readBlock(BlockIndex blockIndex, size_t blockOffset, char* block, size_t size) const {
879 checkBlockIndex(blockIndex);
880 rawReadBlock(blockIndex, blockOffset, block, size);
881}
882
883ByteArray BTreeDatabase::readBlock(BlockIndex blockIndex) const {
884 ByteArray block(m_blockSize, 0);

Callers 2

loadIndexMethod · 0.80
loadLeafMethod · 0.80

Calls 1

ptrMethod · 0.45

Tested by

no test coverage detected