| 192 | FLValue FLArray_Get(FLArray a, uint32_t index) FLAPI {return a ? a->get(index) : nullptr;} |
| 193 | |
| 194 | void 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 | |
| 200 | uint32_t FLArrayIterator_GetCount(const FLArrayIterator* i) FLAPI { |
| 201 | return ((Array::iterator*)i)->count(); |