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

Method isUnused

valdi/src/valdi/snap_drawing/ImageLoading/ImageCacheItem.cpp:41–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41bool ImageCacheItem::isUnused() const {
42 return _image->retainCount() == 1;
43}
44
45long ImageCacheItem::getImageSizeInBytes() const {
46 return imageSize(_image);

Callers 2

invalidateCachedItemsMethod · 0.80

Calls 1

retainCountMethod · 0.45

Tested by

no test coverage detected