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

Method HeapArray

Fleece/Mutable/HeapArray.cc:24–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23
24 HeapArray::HeapArray(const Array *a)
25 :HeapCollection(kArrayTag)
26 ,_items(a ? a->count() : 0)
27 {
28 if (a) {
29 if (a->isMutable()) {
30 auto ha = a->asMutable()->heapArray();
31 _items = ha->_items;
32 _source = ha->_source;
33 } else {
34 _source = a;
35 }
36 }
37 }
38
39
40 void HeapArray::populate(unsigned fromIndex) {

Callers

nothing calls this directly

Calls 4

heapArrayMethod · 0.80
countMethod · 0.45
isMutableMethod · 0.45
asMutableMethod · 0.45

Tested by

no test coverage detected