MCPcopy Create free account
hub / github.com/facebook/CacheLib / setHashNext

Method setHashNext

cachelib/allocator/ChainedHashTable.h:211–213  ·  view source on GitHub ↗

sets the next in the hash chain to the passed in value.

Source from the content-addressed store, hash-verified

209 using PtrCompressor = typename T::PtrCompressor;
210 // sets the next in the hash chain to the passed in value.
211 void setHashNext(T* n, const PtrCompressor& compressor) noexcept {
212 next_ = compressor.compress(n);
213 }
214
215 void setHashNext(CompressedPtrType n) noexcept { next_ = n; }
216

Callers 1

setHashNextMethod · 0.45

Calls 1

compressMethod · 0.45

Tested by

no test coverage detected