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

Method CurrentSizeEstimate

src/leveldb/table/block_builder.cc:56–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56size_t BlockBuilder::CurrentSizeEstimate() const {
57 return (buffer_.size() + // Raw data buffer
58 restarts_.size() * sizeof(uint32_t) + // Restart array
59 sizeof(uint32_t)); // Restart array length
60}
61
62Slice BlockBuilder::Finish() {
63 // Append restart array

Callers 1

AddMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected