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

Method isNarrowValue

Fleece/Core/Encoder.cc:435–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

433
434
435 bool Encoder::isNarrowValue(const Value *value) {
436 if (value->tag() >= kArrayTag)
437 return value->countIsZero();
438 else
439 return value->dataSize() <= kNarrow;
440 }
441
442
443 // Returns the minimum address used by the given Value (transitively).

Callers

nothing calls this directly

Calls 3

countIsZeroMethod · 0.80
dataSizeMethod · 0.80
tagMethod · 0.45

Tested by

no test coverage detected