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

Function AppendNumberTo

src/leveldb/util/logging.cc:19–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17namespace leveldb {
18
19void AppendNumberTo(std::string* str, uint64_t num) {
20 char buf[30];
21 snprintf(buf, sizeof(buf), "%llu", (unsigned long long)num);
22 str->append(buf);
23}
24
25void AppendEscapedStringTo(std::string* str, const Slice& value) {
26 for (size_t i = 0; i < value.size(); i++) {

Callers 7

NumberToStringFunction · 0.85
DebugStringMethod · 0.85
CorruptionMethod · 0.85
WriteBatchPrinterFunction · 0.85
VersionEditPrinterFunction · 0.85
DumpTableFunction · 0.85
DebugStringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected