No cache at all. The entire file will be read directly to the user buffer
| 936 | |
| 937 | // No cache at all. The entire file will be read directly to the user buffer |
| 938 | static 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 |
no test coverage detected