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

Method initInSlot

Fleece/Integration/MCollection.hh:58–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 }
57
58 void initInSlot(MValue *slot, MCollection *parent, bool isMutable) {
59 assert(slot);
60 assert(_context == MContext::gNullContext);
61 _slot = slot;
62 _parent = parent;
63 _mutable = isMutable;
64 _mutableChildren = isMutable;
65 _mutated = _slot->isMutated();
66 if (_slot->value())
67 setContext(_parent->_context);
68 }
69
70 void initAsCopyOf(const MCollection &original, bool isMutable) {
71 assert(_context == MContext::gNullContext);

Callers

nothing calls this directly

Calls 2

isMutatedMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected