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

Method totalBlockCount

source/core/StarBTreeDatabase.cpp:227–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227uint32_t BTreeDatabase::totalBlockCount() {
228 ReadLocker readLocker(m_lock);
229 checkIfOpen("totalBlockCount", true);
230 return (m_device->size() - HeaderSize) / m_blockSize;
231}
232
233uint32_t BTreeDatabase::freeBlockCount() {
234 ReadLocker readLocker(m_lock);

Callers 2

testBTreeDatabaseFunction · 0.80
TESTFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by 2

testBTreeDatabaseFunction · 0.64
TESTFunction · 0.64