Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
165
static 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
173
class Stats {
174
private:
Callers
2
AddMessage
Method · 0.85
Report
Method · 0.85
Calls
4
empty
Method · 0.45
push_back
Method · 0.45
data
Method · 0.45
size
Method · 0.45
Tested by
no test coverage detected