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

Function LoadMultipleHashes

src/External/CascLib/src/CascFiles.cpp:343–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341}
342
343static DWORD LoadMultipleHashes(PCASC_BLOB pBlob, const char * szLineBegin, const char * szLineEnd)
344{
345 size_t HashCount = 0;
346 DWORD dwErrCode = ERROR_SUCCESS;
347
348 // Retrieve the hash count
349 if(CaptureHashCount(szLineBegin, szLineEnd, &HashCount) == NULL)
350 return ERROR_BAD_FORMAT;
351
352 // Do nothing if there is no data
353 if(HashCount != 0)
354 {
355 dwErrCode = LoadHashArray(pBlob, szLineBegin, szLineEnd, HashCount);
356 }
357
358 return dwErrCode;
359}
360
361// Loads a query key from the text form
362// A QueryKey is an array of "ContentKey EncodedKey1 ... EncodedKeyN"

Callers 1

LoadQueryKeyFunction · 0.85

Calls 2

CaptureHashCountFunction · 0.85
LoadHashArrayFunction · 0.85

Tested by

no test coverage detected