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

Method Clear

src/leveldb/db/write_batch.cc:35–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33WriteBatch::Handler::~Handler() = default;
34
35void WriteBatch::Clear() {
36 rep_.clear();
37 rep_.resize(kHeader);
38}
39
40size_t WriteBatch::ApproximateSize() const { return rep_.size(); }
41

Callers 7

BuildMethod · 0.45
TESTFunction · 0.45
WriteMethod · 0.45
BuildMethod · 0.45
leveldb_writebatch_clearFunction · 0.45
GetRangeMethod · 0.45

Calls 2

clearMethod · 0.45
resizeMethod · 0.45

Tested by 3

BuildMethod · 0.36
TESTFunction · 0.36
BuildMethod · 0.36