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

Function FLArrayIterator_Begin

Fleece/API_Impl/Fleece.cc:194–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192FLValue FLArray_Get(FLArray a, uint32_t index) FLAPI {return a ? a->get(index) : nullptr;}
193
194void FLArrayIterator_Begin(FLArray a, FLArrayIterator* i) FLAPI {
195 static_assert(sizeof(FLArrayIterator) >= sizeof(Array::iterator),"FLArrayIterator is too small");
196 new (i) Array::iterator(a);
197 // Note: this is safe even if a is null.
198}
199
200uint32_t FLArrayIterator_GetCount(const FLArrayIterator* i) FLAPI {
201 return ((Array::iterator*)i)->count();

Callers 1

iteratorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected