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

Function FLKeyPath_GetElement

Fleece/API_Impl/Fleece.cc:564–571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

562}
563
564bool FLKeyPath_GetElement(FLKeyPath path, size_t i, FLSlice *outKey, int32_t *outIndex) FLAPI {
565 if (i >= path->size())
566 return false;
567 auto &element = (*path)[i];
568 *outKey = element.keyStr();
569 *outIndex = element.index();
570 return true;
571}
572
573
574#pragma mark - ENCODER:

Callers

nothing calls this directly

Calls 3

keyStrMethod · 0.80
sizeMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected