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

Function NumberString

src/leveldb/db/log_test.cc:28–32  ·  view source on GitHub ↗

Construct a string from a number

Source from the content-addressed store, hash-verified

26
27// Construct a string from a number
28static std::string NumberString(int n) {
29 char buf[50];
30 snprintf(buf, sizeof(buf), "%d.", n);
31 return std::string(buf);
32}
33
34// Return a skewed potentially long string
35static std::string RandomSkewedString(int i, Random* rnd) {

Callers 2

RandomSkewedStringFunction · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected