| 161 | } |
| 162 | |
| 163 | void * 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 |
| 177 | bool ListFile_VerifyMD5(void * pvListFile, LPBYTE pbHashMD5) |
nothing calls this directly
no test coverage detected