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

Method Delete

src/leveldb/db/write_batch.cc:105–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105void WriteBatch::Delete(const Slice& key) {
106 WriteBatchInternal::SetCount(this, WriteBatchInternal::Count(this) + 1);
107 rep_.push_back(static_cast<char>(kTypeDeletion));
108 PutLengthPrefixedSlice(&rep_, key);
109}
110
111void WriteBatch::Append(const WriteBatch& source) {
112 WriteBatchInternal::Append(this, &source);

Callers 1

IterateMethod · 0.45

Calls 2

PutLengthPrefixedSliceFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected