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

Method newDict

Fleece/Mutable/MutableDict.hh:24–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 public:
23
24 static Retained<MutableDict> newDict(const Dict *d =nullptr, CopyFlags flags =kDefaultCopy) {
25 auto hd = retained(new internal::HeapDict(d));
26 if (flags)
27 hd->copyChildren(flags);
28 return hd->asMutableDict();
29 }
30
31 Retained<MutableDict> copy(CopyFlags f =kDefaultCopy) {return newDict(this, f);}
32

Callers

nothing calls this directly

Calls 3

retainedFunction · 0.85
asMutableDictMethod · 0.80
copyChildrenMethod · 0.45

Tested by

no test coverage detected