MCPcopy Create free account
hub / github.com/Scobalula/Greyhound / ListFile_FromBuffer

Function ListFile_FromBuffer

src/External/CascLib/src/common/ListFile.cpp:163–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163void * ListFile_FromBuffer(LPBYTE pbBuffer, DWORD cbBuffer)
164{
165 PLISTFILE_CACHE pCache = NULL;
166
167 // Create the in-memory cache for the entire listfile
168 // The listfile does not have any data loaded yet
169 pCache = ListFile_CreateCache(cbBuffer);
170 if(pCache != NULL)
171 memcpy(pCache->pBegin, pbBuffer, cbBuffer);
172
173 return pCache;
174}
175
176// Performs the MD5-based check on the listfile
177bool ListFile_VerifyMD5(void * pvListFile, LPBYTE pbHashMD5)

Callers

nothing calls this directly

Calls 1

ListFile_CreateCacheFunction · 0.85

Tested by

no test coverage detected