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

Method disconnectFromSource

Fleece/Mutable/HeapArray.cc:143–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141
142
143 void HeapArray::disconnectFromSource() {
144 if (!_source)
145 return;
146 uint32_t index = 0;
147 for (auto &mval : _items) {
148 if (!mval)
149 mval.set(_source->get(index));
150 ++index;
151 }
152 _source = nullptr;
153 }
154
155
156 void HeapArray::copyChildren(CopyFlags flags) {

Callers

nothing calls this directly

Calls 2

setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected