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

Method writeCache

src/MultiDiskAdaptor.cc:413–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411}
412
413void MultiDiskAdaptor::writeCache(const WrDiskCacheEntry* entry)
414{
415 for (auto& d : entry->getDataSet()) {
416 A2_LOG_DEBUG(fmt("Cache flush goff=%" PRId64 ", len=%lu", d->goff,
417 static_cast<unsigned long>(d->len)));
418 writeData(d->data + d->offset, d->len, d->goff);
419 }
420}
421
422void MultiDiskAdaptor::flushOSBuffers()
423{

Callers 3

testWriteCacheMethod · 0.45
testWriteCacheMethod · 0.45
writeToDiskMethod · 0.45

Calls 1

fmtFunction · 0.85

Tested by 2

testWriteCacheMethod · 0.36
testWriteCacheMethod · 0.36