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

Function ContentFilePath

engine/dlib/src/dlib/http_cache.cpp:154–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152 }
153
154 static void ContentFilePath(HCache cache, uint64_t identifier_hash, char* path, int path_len)
155 {
156 char identifier_string[8 * 2 + 1];
157 identifier_string[sizeof(identifier_string)-1] = '\0';
158 HashToString(identifier_hash, &identifier_string[0]);
159 dmSnPrintf(path, path_len, "%s/%c%c/%s",
160 cache->m_Path,
161 identifier_string[0],
162 identifier_string[1],
163 &identifier_string[2]);
164 }
165
166 static void RemoveCachedContentFile(HCache cache, uint64_t identifier_hash)
167 {

Callers 3

RemoveCachedContentFileFunction · 0.85
EndFunction · 0.85
GetFunction · 0.85

Calls 2

HashToStringFunction · 0.85
dmSnPrintfFunction · 0.85

Tested by

no test coverage detected