| 1161 | } |
| 1162 | |
| 1163 | bool RequestGroup::needsFileAllocation() const |
| 1164 | { |
| 1165 | return isFileAllocationEnabled() && |
| 1166 | option_->getAsLLInt(PREF_NO_FILE_ALLOCATION_LIMIT) <= |
| 1167 | getTotalLength() && |
| 1168 | !pieceStorage_->getDiskAdaptor()->fileAllocationIterator()->finished(); |
| 1169 | } |
| 1170 | |
| 1171 | std::shared_ptr<DownloadResult> RequestGroup::createDownloadResult() const |
| 1172 | { |