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

Function CaptureHashCount

src/External/CascLib/src/CascFiles.cpp:224–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224static const char * CaptureHashCount(const char * szDataPtr, const char * szDataEnd, size_t * PtrHashCount)
225{
226 BYTE HashValue[MD5_HASH_SIZE];
227 size_t HashCount = 0;
228
229 // Capculate the hash count
230 while (szDataPtr < szDataEnd)
231 {
232 // Check one hash
233 szDataPtr = CaptureSingleHash(szDataPtr, szDataEnd, HashValue, MD5_HASH_SIZE);
234 if(szDataPtr == NULL)
235 return NULL;
236
237 // Skip all whitespaces
238 while (szDataPtr < szDataEnd && IsWhiteSpace(szDataPtr))
239 szDataPtr++;
240
241 HashCount++;
242 }
243
244 // Give results
245 PtrHashCount[0] = HashCount;
246 return szDataPtr;
247}
248
249static DWORD GetLocaleValue(LPCSTR szTag)
250{

Callers 2

LoadMultipleHashesFunction · 0.85
LoadCKeyEntryFunction · 0.85

Calls 2

CaptureSingleHashFunction · 0.85
IsWhiteSpaceFunction · 0.85

Tested by

no test coverage detected