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

Function LoadIndexFile_V1

src/External/CascLib/src/CascIndexFiles.cpp:384–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382}
383
384static DWORD LoadIndexFile_V1(TCascStorage * hs, CASC_INDEX_HEADER & InHeader, EKEY_ENTRY_CALLBACK PfnEKeyEntry, LPBYTE pbFileData, size_t cbFileData)
385{
386 LPBYTE pbEKeyEntries = pbFileData + InHeader.HeaderLength + InHeader.HeaderPadding;
387
388 // Remember the values from the index header
389 SaveFileOffsetBitsAndEKeyLength(hs, InHeader.FileOffsetBits, InHeader.EKeyLength);
390
391 // Load the entries from a continuous array
392 return LoadIndexItems(hs, InHeader, PfnEKeyEntry, pbEKeyEntries, pbFileData + cbFileData);
393}
394
395static DWORD LoadIndexFile_V2(TCascStorage * hs, CASC_INDEX_HEADER & InHeader, EKEY_ENTRY_CALLBACK PfnEKeyEntry, LPBYTE pbFileData, size_t cbFileData)
396{

Callers 1

LoadIndexFileFunction · 0.85

Calls 2

LoadIndexItemsFunction · 0.85

Tested by

no test coverage detected