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

Method insert

source/core/StarBTreeDatabase.cpp:205–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205bool BTreeDatabase::insert(ByteArray const& k, ByteArray const& data) {
206 WriteLocker writeLocker(m_lock);
207 checkKeySize(k);
208 return m_impl.insert(k, data);
209}
210
211bool BTreeDatabase::remove(ByteArray const& k) {
212 WriteLocker writeLocker(m_lock);

Callers 5

shiftLeftMethod · 0.45
shiftRightMethod · 0.45
splitMethod · 0.45
leafInsertMethod · 0.45
tryFlattenMethod · 0.45

Calls 2

sha256Function · 0.85
insertAtMethod · 0.80

Tested by

no test coverage detected