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

Method mutableCopy

Fleece/Mutable/HeapValue.cc:185–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183
184
185 Retained<HeapCollection> HeapCollection::mutableCopy(const Value *v, tags ifType) {
186 if (!v || v->tag() != ifType)
187 return nullptr;
188 if (v->isMutable())
189 return (HeapCollection*)asHeapValue(v);
190 switch (ifType) {
191 case kArrayTag: return new HeapArray((const Array*)v);
192 case kDictTag: return new HeapDict((const Dict*)v);
193 default: return nullptr;
194 }
195 }
196
197} } }

Callers

nothing calls this directly

Calls 2

tagMethod · 0.45
isMutableMethod · 0.45

Tested by

no test coverage detected