| 978 | } |
| 979 | |
| 980 | uint32_t BTreeDatabase::maxIndexPointers() const { |
| 981 | // 2 for magic, 1 byte for level, sizeof(BlockIndex) for beginPointer, 4 |
| 982 | // for size. |
| 983 | return (m_blockSize - 2 - 1 - sizeof(BlockIndex) - 4) / (m_keySize + sizeof(BlockIndex)) + 1; |
| 984 | } |
| 985 | |
| 986 | uint32_t BTreeDatabase::dataSize(ByteArray const& d) const { |
| 987 | return vlqUSize(d.size()) + d.size(); |
no outgoing calls
no test coverage detected