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

Function ReadFile_NonCached

src/External/CascLib/src/CascReadFile.cpp:938–953  ·  view source on GitHub ↗

No cache at all. The entire file will be read directly to the user buffer

Source from the content-addressed store, hash-verified

936
937// No cache at all. The entire file will be read directly to the user buffer
938static DWORD ReadFile_NonCached(TCascFile * hf, LPBYTE pbBuffer, ULONGLONG StartOffset, ULONGLONG EndOffset)
939{
940 // Reading the whole file?
941 if(StartOffset == 0 && EndOffset == hf->ContentSize)
942 {
943 return ReadFile_WholeFile(hf, pbBuffer);
944 }
945
946 // Reading just a part of the file?
947 else
948 {
949 assert(false);
950 }
951
952 return 0;
953}
954
955//-----------------------------------------------------------------------------
956// Public functions

Callers 1

CascReadFileFunction · 0.85

Calls 1

ReadFile_WholeFileFunction · 0.85

Tested by

no test coverage detected