| 363 | } |
| 364 | |
| 365 | U64 Win32File::getSize() |
| 366 | { |
| 367 | U64 size; |
| 368 | |
| 369 | if (mStatus == Open) |
| 370 | { |
| 371 | // Special case if file is open (handles unflushed buffers) |
| 372 | if ( !GetFileSizeEx(mHandle, (PLARGE_INTEGER)&size) ) |
| 373 | size = 0; |
| 374 | return size; |
| 375 | } |
| 376 | else |
| 377 | { |
| 378 | // Fallback to generic function |
| 379 | size = File::getSize(); |
| 380 | } |
| 381 | |
| 382 | return size; |
| 383 | } |
| 384 | |
| 385 | U32 Win32File::calculateChecksum() |
| 386 | { |
no test coverage detected