| 17 | namespace leveldb { |
| 18 | |
| 19 | void 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 | |
| 25 | void AppendEscapedStringTo(std::string* str, const Slice& value) { |
| 26 | for (size_t i = 0; i < value.size(); i++) { |
no outgoing calls
no test coverage detected