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

Method initAsCopyOf

Fleece/Integration/MCollection.hh:70–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 }
69
70 void initAsCopyOf(const MCollection &original, bool isMutable) {
71 assert(_context == MContext::gNullContext);
72 setContext(original._context);
73 _mutable = _mutableChildren = isMutable;
74 }
75
76 void setSlot(MValue *newSlot, MValue *oldSlot) {
77 if (_usuallyTrue(_slot == oldSlot)) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected