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

Function Storage_OpenFiles

src/External/CascLib/test/CascTest.cpp:586–608  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

584// Testing functions
585
586static DWORD Storage_OpenFiles(TLogHelper & LogHelper, TEST_PARAMS & Params)
587{
588 CASC_FIND_DATA cf = {0};
589 DWORD dwErrCode = ERROR_SUCCESS;
590
591 // Setup the name structure
592 CascStrCopy(cf.szFileName, _countof(cf.szFileName), Params.szFileName);
593 cf.szPlainName = (char *)GetPlainFileName(cf.szFileName);
594
595 // Setup the file to extract
596 //Params.fp2 = OpenExtractedFile(Params.hStorage, "\\%s", cf);
597
598 // Perform the extraction
599 ExtractFile(LogHelper, Params, cf);
600 LogHelper.PrintTotalTime();
601
602 // Close the output file
603 if(Params.fp2 != NULL)
604 fclose(Params.fp2);
605 Params.fp2 = NULL;
606
607 return dwErrCode;
608}
609
610static DWORD Storage_SeekFiles(TLogHelper & LogHelper, TEST_PARAMS & Params)
611{

Callers

nothing calls this directly

Calls 4

CascStrCopyFunction · 0.85
GetPlainFileNameFunction · 0.85
ExtractFileFunction · 0.85
PrintTotalTimeMethod · 0.80

Tested by

no test coverage detected