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

Method platformStringForKey

Fleece/Core/SharedKeys.cc:190–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188
189
190 SharedKeys::PlatformString SharedKeys::platformStringForKey(int key) const {
191 throwIf(key < 0, InvalidData, "key must be non-negative");
192 LOCK(_mutex);
193 if ((unsigned)key >= _platformStringsByKey.size())
194 return nullptr;
195 return _platformStringsByKey[key];
196 }
197
198
199 void SharedKeys::setPlatformStringForKey(int key, SharedKeys::PlatformString platformKey) const {

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected