MCPcopy Create free account
hub / github.com/Snapchat/Valdi / retainRef

Method retainRef

valdi_core/src/valdi_core/cpp/Utils/ReferenceTable.cpp:201–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201void ReferenceTable::WriteAccess::retainRef(SequenceID id) const {
202 auto& entry = _table->getEntry(id);
203
204 entry.retainCount++;
205}
206
207bool ReferenceTable::WriteAccess::releaseRef(SequenceID id) const {
208 auto& entry = _table->getEntry(id);

Callers 3

retainMethod · 0.80
TESTFunction · 0.80
retainMethod · 0.80

Calls 1

getEntryMethod · 0.45

Tested by 1

TESTFunction · 0.64