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

Function exchange_cache_complement

engine/src/core/expert_source.cpp:375–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373}
374
375bool exchange_cache_complement(std::vector<uint64_t>& offsets, size_t in, size_t out) {
376 if (in == out || in >= offsets.size() || out >= offsets.size() || offsets[in] == kNoCacheComplement ||
377 offsets[out] != kNoCacheComplement) return false;
378 offsets[out] = offsets[in];
379 offsets[in] = kNoCacheComplement;
380 return true;
381}
382
383} // namespace detail
384

Callers 5

commit_exchangesMethod · 0.70
install_residentMethod · 0.70
commit_flipMethod · 0.70
test_resident_exchangeFunction · 0.50

Calls 1

sizeMethod · 0.45

Tested by 1

test_resident_exchangeFunction · 0.40