MCPcopy Create free account
hub / github.com/couchbase/fleece / insertOnly

Method insertOnly

Fleece/Support/StringTable.cc:148–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146
147
148 __hot void StringTable::insertOnly(key_t key, value_t value, hash_t hash) {
149 assert_precondition(!find(key, hash));
150 if (_usuallyFalse(++_count > _capacity))
151 grow();
152 _insertOnly(hash, {key, value});
153 }
154
155
156 // Subroutine of insertOnly() and grow() that doesn't bump count or grow table.

Callers

nothing calls this directly

Calls 1

growFunction · 0.85

Tested by

no test coverage detected