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

Method keyToOffset

Fleece/Support/ConcurrentMap.cc:143–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141
142
143 __hot
144 inline uint16_t ConcurrentMap::keyToOffset(const char *allocedKey) const {
145 ptrdiff_t result = _heap.toOffset(allocedKey) - _keysOffset;
146 assert(result >= kMinKeyOffset && result <= UINT16_MAX);
147 return uint16_t(result);
148 }
149
150
151 __hot

Callers

nothing calls this directly

Calls 1

toOffsetMethod · 0.80

Tested by

no test coverage detected