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

Method getMemorySize

cachelib/interface/tests/InterfaceTest.cpp:56–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 return const_cast<uint8_t*>(memory_.data());
55 }
56 uint32_t getMemorySize() const noexcept override { return memory_.size(); }
57 uint32_t getTotalSize() const noexcept override {
58 // Note: this doesn't try to account for SSO
59 return sizeof(*this) + key_.size() + memory_.size();

Callers 2

checkItemFieldsMethod · 0.45
populateItemMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected