| 3770 | |
| 3771 | |
| 3772 | uint64 CPartFile::GetNeededSpace() |
| 3773 | { |
| 3774 | try { |
| 3775 | uint64 length = m_hpartfile.GetLength(); |
| 3776 | |
| 3777 | if (length > GetFileSize()) { |
| 3778 | return 0; // Shouldn't happen, but just in case |
| 3779 | } |
| 3780 | |
| 3781 | return GetFileSize() - length; |
| 3782 | } catch (const CIOFailureException& e) { |
| 3783 | AddDebugLogLineC(logPartFile, |
| 3784 | CFormat("Error while retrieving file-length (%s): %s") |
| 3785 | % m_PartPath % e.what()); |
| 3786 | SetStatus(PS_ERROR); |
| 3787 | return 0; |
| 3788 | } |
| 3789 | } |
| 3790 | |
| 3791 | void CPartFile::SetStatus(uint8 in) |
| 3792 | { |
no test coverage detected