MCPcopy Create free account
hub / github.com/defold/defold / SetVerified

Function SetVerified

engine/dlib/src/dlib/http_cache.cpp:734–749  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

732 }
733
734 Result SetVerified(HCache cache, const char* uri, bool verified)
735 {
736 dmMutex::ScopedLock lock(cache->m_Mutex);
737
738 uint64_t uri_hash = dmHashString64(uri);
739 Entry* entry = cache->m_CacheTable.Get(uri_hash);
740 if (entry != 0)
741 {
742 entry->m_Info.m_Verified = verified;
743 return RESULT_OK;
744 }
745 else
746 {
747 return RESULT_NO_ENTRY;
748 }
749 }
750
751 Result Release(HCache cache, const char* uri, const char* etag, FILE* file)
752 {

Callers 2

HttpContentFunction · 0.70
HandleCachedFunction · 0.70

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected