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

Method insert

Fleece/Tree/MutableHashTree.cc:103–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101 }
102
103 bool MutableHashTree::insert(slice key, InsertCallback callback) {
104 if (!_root)
105 _root = MutableInterior::newRoot(_imRoot);
106 auto result = _root->insert(Target(key, &callback), 0);
107 if (!result)
108 return false;
109 _root = result;
110 return true;
111 }
112
113 void MutableHashTree::set(slice key, Value val) {
114 if (val)

Callers

nothing calls this directly

Calls 1

TargetClass · 0.85

Tested by

no test coverage detected