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

Method Reset

src/leveldb/table/block_builder.cc:47–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void BlockBuilder::Reset() {
48 buffer_.clear();
49 restarts_.clear();
50 restarts_.push_back(0); // First restart point is at offset 0
51 counter_ = 0;
52 finished_ = false;
53 last_key_.clear();
54}
55
56size_t BlockBuilder::CurrentSizeEstimate() const {
57 return (buffer_.size() + // Raw data buffer

Callers 2

WriteBlockMethod · 0.45
TESTFunction · 0.45

Calls 2

clearMethod · 0.45
push_backMethod · 0.45

Tested by 1

TESTFunction · 0.36