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

Method Put

src/leveldb/db/dumpfile.cc:77–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75class WriteBatchItemPrinter : public WriteBatch::Handler {
76 public:
77 void Put(const Slice& key, const Slice& value) override {
78 std::string r = " put '";
79 AppendEscapedStringTo(&r, key);
80 r += "' '";
81 AppendEscapedStringTo(&r, value);
82 r += "'\n";
83 dst_->Append(r);
84 }
85 void Delete(const Slice& key) override {
86 std::string r = " del '";
87 AppendEscapedStringTo(&r, key);

Callers

nothing calls this directly

Calls 2

AppendEscapedStringToFunction · 0.85
AppendMethod · 0.45

Tested by

no test coverage detected