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

Function AppendWithSpace

src/leveldb/benchmarks/db_bench.cc:165–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163#endif
164
165static void AppendWithSpace(std::string* str, Slice msg) {
166 if (msg.empty()) return;
167 if (!str->empty()) {
168 str->push_back(' ');
169 }
170 str->append(msg.data(), msg.size());
171}
172
173class Stats {
174 private:

Callers 2

AddMessageMethod · 0.85
ReportMethod · 0.85

Calls 4

emptyMethod · 0.45
push_backMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected