| 372 | } |
| 373 | |
| 374 | U64 Win32File::getSize() |
| 375 | { |
| 376 | U64 size; |
| 377 | |
| 378 | if (mStatus == Open) |
| 379 | { |
| 380 | // Special case if file is open (handles unflushed buffers) |
| 381 | if ( !GetFileSizeEx(mHandle, (PLARGE_INTEGER)&size) ) |
| 382 | size = 0; |
| 383 | return size; |
| 384 | } |
| 385 | else |
| 386 | { |
| 387 | // Fallback to generic function |
| 388 | size = File::getSize(); |
| 389 | } |
| 390 | |
| 391 | return size; |
| 392 | } |
| 393 | |
| 394 | U32 Win32File::calculateChecksum() |
| 395 | { |
no test coverage detected