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

Function getAddressVal

cachelib/shm/ShmCommon.cpp:72–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72size_t getAddressVal(folly::StringPiece addr) {
73 // addresses are in base 16
74 const size_t ret = strtoull(addr.data(), nullptr, 16);
75 XDCHECK_NE(ret, 0u);
76 return ret;
77}
78
79bool lineAddressMatches(folly::StringPiece line, uintptr_t addr) {
80 // line should be of form

Callers 1

lineAddressMatchesFunction · 0.85

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected