MCPcopy Create free account
hub / github.com/apple/foundationdb / debugFileTrim

Function debugFileTrim

fdbrpc/TraceFileIO.cpp:49–55  ·  view source on GitHub ↗

Trim a file path to the file name

Source from the content-addressed store, hash-verified

47
48// Trim a file path to the file name
49std::string debugFileTrim(std::string filename) {
50 int index = filename.find_last_of("/");
51 if (index == filename.npos)
52 return filename;
53 else
54 return filename.substr(index + 1);
55}
56
57// Checks if a block of memory has been written
58bool debugFileIsSet(uint8_t* storeMask, int64_t offset, int64_t length) {

Callers 3

debugFileCheckFunction · 0.85
debugFileSetFunction · 0.85
debugFileTruncateFunction · 0.85

Calls 1

substrMethod · 0.80

Tested by

no test coverage detected