MCPcopy Create free account
hub / github.com/aria2/aria2 / needsFileAllocation

Method needsFileAllocation

src/RequestGroup.cc:1163–1169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 6

proceedFileAllocationMethod · 0.45
createDiskWriterEntryFunction · 0.45
allocateChunkMethod · 0.45

Calls 4

getAsLLIntMethod · 0.80
finishedMethod · 0.45
getDiskAdaptorMethod · 0.45

Tested by 2