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

Method initInSlot

Fleece/Integration/MArray.hh:40–45  ·  view source on GitHub ↗

Initializes a brand-new MArray created with the empty constructor, as though it had been created with the existing-Array constructor. Useful in situations where you can't pass parameters to the constructor (i.e. when embedding an MArray in an Objective-C++ object.) */

Source from the content-addressed store, hash-verified

38 pass parameters to the constructor (i.e. when embedding an MArray in an Objective-C++
39 object.) */
40 void initInSlot(MValue *mv, MCollection *parent, bool isMutable) {
41 MCollection::initInSlot(mv, parent, isMutable);
42 assert(!_array);
43 _array = mv->value().asArray();
44 _vec.resize(_array.count());
45 }
46
47 void initInSlot(MValue *mv, MCollection *parent) {
48 initInSlot(mv, parent, parent->mutableChildren());

Callers

nothing calls this directly

Calls 5

mutableChildrenMethod · 0.80
asArrayMethod · 0.45
valueMethod · 0.45
resizeMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected