MCPcopy Create free account
hub / github.com/Niko1221/Strata / bytes

Method bytes

engine/src/core/dflash2.cpp:777–782  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

775}
776
777uint64_t Dflash2Drafter::Lineage::bytes() const {
778 uint64_t b = (uint64_t) hist.capacity() * 4;
779 for (const auto& c : chunks)
780 if (c) b += c->q.size() + c->d.size() * 4 + c->ok.size();
781 return b;
782}
783
784Dflash2Drafter::LogChunk& Dflash2Drafter::Lineage::writable(size_t chunk) {
785 if (chunks.size() <= chunk) chunks.resize(chunk + 1);

Callers 15

mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
full_swapFunction · 0.45
full_sessionFunction · 0.45
mainFunction · 0.45
ring_log_bytesMethod · 0.45
ring_stash_bytesMethod · 0.45

Calls 2

capacityMethod · 0.45
sizeMethod · 0.45

Tested by 15

mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
full_swapFunction · 0.36
full_sessionFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
fixtureFunction · 0.36
swap_transfer_failureFunction · 0.36