MCPcopy Create free account
hub / github.com/Snapchat/Valdi / getVariantCount

Method getVariantCount

valdi/src/valdi/snap_drawing/ImageLoading/ImageCache.cpp:239–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239int ImageCache::getVariantCount(const String& url) const {
240 const auto& it = _cache.find(url);
241 if (it != _cache.end()) {
242 return (it->second)->getVariantCount();
243 } else {
244 return 0;
245 }
246}
247
248} // namespace snap::drawing

Callers 1

TEST_FFunction · 0.45

Calls 2

endMethod · 0.65
findMethod · 0.45

Tested by 1

TEST_FFunction · 0.36