Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
33
WriteBatch::Handler::~Handler() = default;
34
35
void WriteBatch::Clear() {
36
rep_.clear();
37
rep_.resize(kHeader);
38
}
39
40
size_t WriteBatch::ApproximateSize() const { return rep_.size(); }
41
Callers
7
Build
Method · 0.45
TEST
Function · 0.45
OpenCompactionOutputFile
Method · 0.45
Write
Method · 0.45
Build
Method · 0.45
leveldb_writebatch_clear
Function · 0.45
GetRange
Method · 0.45
Calls
2
clear
Method · 0.45
resize
Method · 0.45
Tested by
3
Build
Method · 0.36
TEST
Function · 0.36
Build
Method · 0.36