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

Method estimateWriteSize

cachelib/navy/block_cache/BlockCache.cpp:348–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346}
347
348uint64_t BlockCache::estimateWriteSize(HashedKey hk, BufferView value) const {
349 return serializedSize(hk.key().size(), value.size());
350}
351
352template <typename KeyT, typename IndexLookupT>
353BlockCache::LookupData BlockCache::lookupInternal(const KeyT& key,

Callers 1

TESTFunction · 0.45

Calls 2

sizeMethod · 0.45
keyMethod · 0.45

Tested by 1

TESTFunction · 0.36