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

Method get

Fleece/Mutable/HeapArray.cc:53–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52
53 const Value* HeapArray::get(uint32_t index) {
54 if (index >= count())
55 return nullptr;
56 auto &item = _items[index];
57 if (item)
58 return item.asValue();
59 assert(_source);
60 return _source->get(index);
61 }
62
63
64 void HeapArray::resize(uint32_t newSize) {

Callers 2

getMutableMethod · 0.45
disconnectFromSourceMethod · 0.45

Calls 1

asValueMethod · 0.45

Tested by

no test coverage detected