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

Function IsValidHeader

engine/dlib/src/dlib/http_cache.cpp:178–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176 }
177
178 static bool IsValidHeader(IndexHeader* header)
179 {
180 return header->m_Magic == MAGIC &&
181 header->m_Version == VERSION &&
182 header->m_SizeOfEntry == (uint32_t)sizeof(Entry) &&
183 header->m_SizeOfFileEntry == (uint32_t)sizeof(FileEntry);
184 }
185
186 Result Open(NewParams* params, HCache* cache)
187 {

Callers 1

OpenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected