1155 |
* |
* |
1156 |
* Removes the sub chunk given by \a pSubChunk from this list and frees |
* Removes the sub chunk given by \a pSubChunk from this list and frees |
1157 |
* it completely from RAM. The given chunk can either be a normal sub |
* it completely from RAM. The given chunk can either be a normal sub |
1158 |
* chunk or a list sub chunk. You should call File::Save() to make this |
* chunk or a list sub chunk. In case the given chunk is a list chunk, |
1159 |
* change persistent at any time. |
* all its subchunks (if any) will be removed recursively as well. You |
1160 |
|
* should call File::Save() to make this change persistent at any time. |
1161 |
* |
* |
1162 |
* @param pSubChunk - sub chunk or sub list chunk to be removed |
* @param pSubChunk - sub chunk or sub list chunk to be removed |
1163 |
*/ |
*/ |
1689 |
} |
} |
1690 |
#elif defined(WIN32) |
#elif defined(WIN32) |
1691 |
unsigned long File::__GetFileSize(HANDLE hFile) { |
unsigned long File::__GetFileSize(HANDLE hFile) { |
1692 |
LARGE_INTEGER size; |
DWORD dwSize = ::GetFileSize(hFile, NULL /*32bit*/); |
1693 |
GetFileSizeEx(hFile, &size); |
if (dwSize == INVALID_FILE_SIZE) |
1694 |
return size.LowPart; |
throw Exception("Windows FS error: could not determine file size"); |
1695 |
|
return dwSize; |
1696 |
} |
} |
1697 |
#else // standard C functions |
#else // standard C functions |
1698 |
unsigned long File::__GetFileSize(FILE* hFile) { |
unsigned long File::__GetFileSize(FILE* hFile) { |