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

Method getMemory

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

Source from the content-addressed store, hash-verified

51 }
52 Key getKey() const noexcept override { return Key(key_); }
53 void* getMemory() const noexcept override {
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

Callers 4

allocateAndInsertItemMethod · 0.45
checkItemFieldsMethod · 0.45
makeItemMethod · 0.45
CO_TEST_FFunction · 0.45

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected