MCPcopy Create free account
hub / github.com/ElementsProject/elements / MakeFileName

Function MakeFileName

src/leveldb/db/filename.cc:20–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 const std::string& fname);
19
20static std::string MakeFileName(const std::string& dbname, uint64_t number,
21 const char* suffix) {
22 char buf[100];
23 snprintf(buf, sizeof(buf), "/%06llu.%s",
24 static_cast<unsigned long long>(number), suffix);
25 return dbname + buf;
26}
27
28std::string LogFileName(const std::string& dbname, uint64_t number) {
29 assert(number > 0);

Callers 4

LogFileNameFunction · 0.85
TableFileNameFunction · 0.85
SSTTableFileNameFunction · 0.85
TempFileNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected