MCPcopy Create free account
hub / github.com/CesiumGS/cesium-native / getCreditSource

Method getCreditSource

CesiumUtility/src/CreditSystem.cpp:152–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152const CreditSource*
153CreditSystem::getCreditSource(Credit credit) const noexcept {
154 if (credit._id < this->_credits.size() &&
155 credit._generation == this->_credits[credit._id].generation) {
156 return this->_credits[credit._id].pSource;
157 }
158 return nullptr;
159}
160
161bool CreditSystem::addCreditReference(Credit credit) {
162 CreditRecord& record = this->_credits[credit._id];

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected